mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avcodec/h264_slice: Check input SPS in ff_h264_update_thread_context()
Fixes: crash Fixes: check_pkt.mp4 Found-by: Rafael Dutra <rafael.dutra@cispa.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit ceae92cb291c2536a93482cdf3c1ae3f7330b924) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b5e7092c9c
commit
ed0134946f
@ -304,9 +304,8 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
|
|||||||
if (dst == src)
|
if (dst == src)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// We can't fail if SPS isn't set at it breaks current skip_frame code
|
if (inited && !h1->ps.sps)
|
||||||
//if (!h1->ps.sps)
|
return AVERROR_INVALIDDATA;
|
||||||
// return AVERROR_INVALIDDATA;
|
|
||||||
|
|
||||||
if (inited &&
|
if (inited &&
|
||||||
(h->width != h1->width ||
|
(h->width != h1->width ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user