Ticket #5220: mythtv-0.21-ffmpeg_ac3_crc.patch
File mythtv-0.21-ffmpeg_ac3_crc.patch, 657 bytes (added by , 16 years ago) |
---|
-
libs/libavcodec/ac3dec.c
37 37 #include "bitstream.h" 38 38 #include "dsputil.h" 39 39 #include "random.h" 40 #include "crc.h" 40 41 41 42 /** 42 43 * Table of bin locations for rematrixing bands … … 1121 1122 return -1; 1122 1123 } 1123 1124 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 1124 1131 avctx->sample_rate = ctx->sampling_rate; 1125 1132 avctx->bit_rate = ctx->bit_rate; 1126 1133