• Andreas Cadhalpun's avatar
    snow: remove an obsolete av_assert2 · 3526a120
    Andreas Cadhalpun authored
    It asserts that the frame linesize is larger than 37, but it can be
    smaller and decoding such frames works.
    
    Before commit cc884a35 src_stride > 7*MB_SIZE was necessary, because the
    blocks were interleaved in the tmp buffer and the last block was added
    with an offset of 6*MB_SIZE.
    It was changed for src_stride <= 7*MB_SIZE to write the blocks
    sequentially, hence the larger tmp_step.
    After that the assert was only necessary to make sure that the buffer
    remained large enough.
    Since commit bd2b6b33 s->scratchbuf is used as tmp buffer.
    As part of commit 86e107a7 the minimal scratchbuf size was increased to
    256*7*MB_SIZE, which is enough for any src_stride <= 7*MB_SIZE.
    
    Also add a comment explaining the tmp_step calculation.
    Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
    3526a120
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
cmdutils_opencl.c Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_dxva2.c Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_vda.c Loading commit data...
ffmpeg_vdpau.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver_config.c Loading commit data...
ffserver_config.h Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...