[FFmpeg-cvslog] r13691 - trunk/libavcodec/ac3dec.c
jbr
subversion
Sun Jun 8 00:29:28 CEST 2008
Author: jbr
Date: Sun Jun 8 00:29:27 2008
New Revision: 13691
Log:
skip unsupported frame types and substream id's
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c (original)
+++ trunk/libavcodec/ac3dec.c Sun Jun 8 00:29:27 2008
@@ -1175,7 +1175,14 @@ static int ac3_decode_frame(AVCodecConte
av_log(avctx, AV_LOG_ERROR, "invalid frame size\n");
break;
case AC3_PARSE_ERROR_FRAME_TYPE:
+ /* skip frame if CRC is ok. otherwise use error concealment. */
+ /* TODO: add support for substreams and dependent frames */
+ if(s->frame_type == EAC3_FRAME_TYPE_DEPENDENT || s->substreamid) {
+ av_log(avctx, AV_LOG_ERROR, "unsupported frame type : skipping frame\n");
+ return s->frame_size;
+ } else {
av_log(avctx, AV_LOG_ERROR, "invalid frame type\n");
+ }
break;
default:
av_log(avctx, AV_LOG_ERROR, "invalid header\n");
More information about the ffmpeg-cvslog
mailing list