mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
avcodec/h264_parse: Clear ref_list[1] if only [0] is used
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9d800d39d5
commit
7f8bfbee36
@ -253,6 +253,10 @@ int ff_h264_parse_ref_count(int *plist_count, int ref_count[2],
|
|||||||
ref_count[0] = ref_count[1] = 0;
|
ref_count[0] = ref_count[1] = 0;
|
||||||
*plist_count = 0;
|
*plist_count = 0;
|
||||||
goto fail;
|
goto fail;
|
||||||
|
} else if (ref_count[1] - 1 > max[1]) {
|
||||||
|
av_log(logctx, AV_LOG_DEBUG, "reference overflow %u > %u \n",
|
||||||
|
ref_count[1] - 1, max[1]);
|
||||||
|
ref_count[1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user