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:
parent
fbcc943b22
commit
02c16b48c5
1 changed files with 2 additions and 1 deletions
|
|
@ -272,7 +272,8 @@ static av_always_inline void add_yblock(SnowContext *s, int sliced, slice_buffer
|
|||
|
||||
if(!sliced && offset_dst)
|
||||
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;
|
||||
|
||||
ptmp= tmp + 3*tmp_step;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue