diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 12:50:03 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 12:50:03 +0100 |
commit | 039f4ff4c2f802bd5dc41096d9e84ba4b7e90d41 (patch) | |
tree | 02ea71e4438a0e953f1e64ef3d37aab084d7030b /libavcodec/h264_ps.c | |
parent | def8588fb588f75df336567918dc512ba04aae67 (diff) | |
download | ffmpeg-streaming-039f4ff4c2f802bd5dc41096d9e84ba4b7e90d41.zip ffmpeg-streaming-039f4ff4c2f802bd5dc41096d9e84ba4b7e90d41.tar.gz |
h264: 2nd try at getting sm2v working
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, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 5ba0744..28d3cbc 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -430,7 +430,7 @@ 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; + sps->ref_frame_count= FFMAX(2, sps->ref_frame_count); 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; |