Ticket #5220: mythtv-0.21-ffmpeg_ac3_crc.patch

File mythtv-0.21-ffmpeg_ac3_crc.patch, 657 bytes (added by Tom Dexter <digitalaudiorock@…>, 16 years ago)
  • libs/libavcodec/ac3dec.c

     
    3737#include "bitstream.h"
    3838#include "dsputil.h"
    3939#include "random.h"
     40#include "crc.h"
    4041
    4142/**
    4243 * Table of bin locations for rematrixing bands
     
    11211122        return -1;
    11221123    }
    11231124
     1125    if (av_crc(av_crc8005, 0, buf + 2, buf_size - 2)) {
     1126        av_log(avctx, AV_LOG_ERROR, "CRC error\n");
     1127        *data_size = 0;
     1128        return buf_size;
     1129    }
     1130
    11241131    avctx->sample_rate = ctx->sampling_rate;
    11251132    avctx->bit_rate = ctx->bit_rate;
    11261133