mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-19 13:30:03 +01:00
h264: 2nd try at getting sm2v working
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -430,7 +430,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
|
|||||||
|
|
||||||
sps->ref_frame_count= get_ue_golomb_31(&s->gb);
|
sps->ref_frame_count= get_ue_golomb_31(&s->gb);
|
||||||
if (h->s.avctx->codec_tag == MKTAG('S', 'M', 'V', '2'))
|
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){
|
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");
|
av_log(h->s.avctx, AV_LOG_ERROR, "too many reference frames\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|||||||
Reference in New Issue
Block a user