Revision f49568a4

View differences:

libavcodec/bitstream.c
83 83
    if(length==0) return;
84 84

  
85 85
    if(CONFIG_SMALL || words < 16 || put_bits_count(pb)&7){
86
        for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i]));
86
        for(i=0; i<words; i++) put_bits(pb, 16, AV_RB16(&srcw[i]));
87 87
    }else{
88 88
        for(i=0; put_bits_count(pb)&31; i++)
89 89
            put_bits(pb, 8, src[i]);
......
92 92
        skip_put_bytes(pb, 2*words-i);
93 93
    }
94 94

  
95
    put_bits(pb, bits, be2me_16(srcw[words])>>(16-bits));
95
    put_bits(pb, bits, AV_RB16(&srcw[words])>>(16-bits));
96 96
}
97 97

  
98 98
/* VLC decoding */

Also available in: Unified diff