mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/h264dec: Disable forced small_padding on flag2 fast
Fixes: 20978/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5746381832847360 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a317af2deb
commit
6b58eaac4d
@ -293,12 +293,9 @@ const uint8_t *ff_h264_decode_nal(H264Context *h, H264SliceContext *sl,
|
||||
if(i>=length-1){ //no escaped 0
|
||||
*dst_length= length;
|
||||
*consumed= length+1; //+1 for the header
|
||||
if(h->avctx->flags2 & AV_CODEC_FLAG2_FAST){
|
||||
return src;
|
||||
}else{
|
||||
memcpy(dst, src, length);
|
||||
return dst;
|
||||
}
|
||||
|
||||
memcpy(dst, src, length);
|
||||
return dst;
|
||||
}
|
||||
|
||||
memcpy(dst, src, i);
|
||||
|
Loading…
Reference in New Issue
Block a user