You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/snow: Don't add to NULL
It is undefined behavior. Fixes "runtime error: applying non-zero offset 8 to null pointer". Fixes the Snow vsynth FATE-tests. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -272,7 +272,8 @@ static av_always_inline void add_yblock(SnowContext *s, int sliced, slice_buffer
|
|||||||
|
|
||||||
if(!sliced && offset_dst)
|
if(!sliced && offset_dst)
|
||||||
dst += src_x + src_y*dst_stride;
|
dst += src_x + src_y*dst_stride;
|
||||||
dst8+= src_x + src_y*src_stride;
|
if (sliced || add)
|
||||||
|
dst8+= src_x + src_y*src_stride;
|
||||||
// src += src_x + src_y*src_stride;
|
// src += src_x + src_y*src_stride;
|
||||||
|
|
||||||
ptmp= tmp + 3*tmp_step;
|
ptmp= tmp + 3*tmp_step;
|
||||||
|
Reference in New Issue
Block a user