Revision 91cc5d37 libavcodec/asv1.c

View differences:

libavcodec/asv1.c
25 25
 */
26 26

  
27 27
#include "avcodec.h"
28
#include "get_bits.h"
28
#include "libavutil/common.h"
29 29
#include "put_bits.h"
30 30
#include "dsputil.h"
31 31
#include "mpeg12data.h"
......
140 140

  
141 141
//FIXME write a reversed bitstream reader to avoid the double reverse
142 142
static inline int asv2_get_bits(GetBitContext *gb, int n){
143
    return ff_reverse[ get_bits(gb, n) << (8-n) ];
143
    return av_reverse[ get_bits(gb, n) << (8-n) ];
144 144
}
145 145

  
146 146
static inline void asv2_put_bits(PutBitContext *pb, int n, int v){
147
    put_bits(pb, n, ff_reverse[ v << (8-n) ]);
147
    put_bits(pb, n, av_reverse[ v << (8-n) ]);
148 148
}
149 149

  
150 150
static inline int asv1_get_level(GetBitContext *gb){
......
417 417
    else{
418 418
        int i;
419 419
        for(i=0; i<buf_size; i++)
420
            a->bitstream_buffer[i]= ff_reverse[ buf[i] ];
420
            a->bitstream_buffer[i]= av_reverse[ buf[i] ];
421 421
    }
422 422

  
423 423
    init_get_bits(&a->gb, a->bitstream_buffer, buf_size*8);
......
519 519
    else{
520 520
        int i;
521 521
        for(i=0; i<4*size; i++)
522
            buf[i]= ff_reverse[ buf[i] ];
522
            buf[i]= av_reverse[ buf[i] ];
523 523
    }
524 524

  
525 525
    return size*4;

Also available in: Unified diff