diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 02:48:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 02:51:23 +0100 |
commit | 991f6bf93dc8de6e98e96e3da7b3b3c213e09b5c (patch) | |
tree | a8e7fb6de283eeae6a3aaad19d6629f17f4924bd /libavcodec/h264_ps.c | |
parent | a39d36146a40cb52b3560fd02c73eccf72603b8f (diff) | |
download | ffmpeg-streaming-991f6bf93dc8de6e98e96e3da7b3b3c213e09b5c.zip ffmpeg-streaming-991f6bf93dc8de6e98e96e3da7b3b3c213e09b5c.tar.gz |
h264: Support SMV2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r-- | libavcodec/h264_ps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 2cf8365..5ba0744 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -429,6 +429,8 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){ } sps->ref_frame_count= get_ue_golomb_31(&s->gb); + if (h->s.avctx->codec_tag == MKTAG('S', 'M', 'V', '2')) + sps->ref_frame_count= 2; if(sps->ref_frame_count > MAX_PICTURE_COUNT-2 || sps->ref_frame_count > 16U){ av_log(h->s.avctx, AV_LOG_ERROR, "too many reference frames\n"); goto fail; |