Revision 91cc5d37 libavcodec/pcm.c

View differences:

libavcodec/pcm.c
25 25
 */
26 26

  
27 27
#include "avcodec.h"
28
#include "get_bits.h" // for ff_reverse
28
#include "libavutil/common.h" /* for av_reverse */
29 29
#include "bytestream.h"
30 30

  
31 31
#define MAX_CHANNELS 64
......
194 194
        break;
195 195
    case CODEC_ID_PCM_S24DAUD:
196 196
        for(;n>0;n--) {
197
            uint32_t tmp = ff_reverse[(*samples >> 8) & 0xff] +
198
                           (ff_reverse[*samples & 0xff] << 8);
197
            uint32_t tmp = av_reverse[(*samples >> 8) & 0xff] +
198
                           (av_reverse[*samples & 0xff] << 8);
199 199
            tmp <<= 4; // sync flags would go here
200 200
            bytestream_put_be24(&dst, tmp);
201 201
            samples++;
......
396 396
        for(;n>0;n--) {
397 397
          uint32_t v = bytestream_get_be24(&src);
398 398
          v >>= 4; // sync flags are here
399
          *samples++ = ff_reverse[(v >> 8) & 0xff] +
400
                       (ff_reverse[v & 0xff] << 8);
399
          *samples++ = av_reverse[(v >> 8) & 0xff] +
400
                       (av_reverse[v & 0xff] << 8);
401 401
        }
402 402
        break;
403 403
    case CODEC_ID_PCM_S16LE_PLANAR:

Also available in: Unified diff