mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-15 03:34:56 +00:00
H264: Fix intra only decoding.
This possibly fixes issue2679 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0ae4aba649
commit
c059d7aa57
@ -622,7 +622,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
|
||||
}
|
||||
}
|
||||
|
||||
if (h->long_ref_count + h->short_ref_count > h->sps.ref_frame_count){
|
||||
if (h->long_ref_count + h->short_ref_count > FFMAX(h->sps.ref_frame_count, 1)){
|
||||
|
||||
/* We have too many reference frames, probably due to corrupted
|
||||
* stream. Need to discard one frame. Prevents overrun of the
|
||||
|
Loading…
Reference in New Issue
Block a user