diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-20 15:09:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-20 15:09:42 +0100 |
commit | 0f8908aa1b66fbc8d62939ce8ee1ee04b856528f (patch) | |
tree | 7937e15d30c72ea02a18f598094325d5b2464a88 | |
parent | 88b4c1a7316cf47f68bf04accf613375b7326992 (diff) | |
download | ffmpeg-0f8908aa1b66fbc8d62939ce8ee1ee04b856528f.tar.gz |
avcodec/mpeg12dec: do not fail on invalid frame_rate_index
Fixes Ticket4073
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mpeg12dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 34dbebf68e..36c993a3c1 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -2123,7 +2123,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx, s->frame_rate_index = get_bits(&s->gb, 4); if (s->frame_rate_index == 0 || s->frame_rate_index > 13) { av_log(avctx, AV_LOG_WARNING, "frame_rate_index %d is invalid\n", s->frame_rate_index); - return -1; + s->frame_rate_index = 1; } s->bit_rate = get_bits(&s->gb, 18) * 400; if (get_bits1(&s->gb) == 0) { /* marker */ |