Commit 7279b5e4 authored by jbr's avatar jbr

skip unsupported frame types and substream id's


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13691 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 967b9f34
...@@ -1175,7 +1175,14 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size, ...@@ -1175,7 +1175,14 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
av_log(avctx, AV_LOG_ERROR, "invalid frame size\n"); av_log(avctx, AV_LOG_ERROR, "invalid frame size\n");
break; break;
case AC3_PARSE_ERROR_FRAME_TYPE: 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"); av_log(avctx, AV_LOG_ERROR, "invalid frame type\n");
}
break; break;
default: default:
av_log(avctx, AV_LOG_ERROR, "invalid header\n"); av_log(avctx, AV_LOG_ERROR, "invalid header\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment