aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/g2meet.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun2015-07-09 19:50:34 +0200
committerAndreas Cadhalpun2015-07-10 16:21:50 +0200
commit3526a120f92929cb0a4009e403ee2f141030c487 (patch)
treef81c9d8dd9c73b0875435113641400b9917896a0 /libavcodec/g2meet.c
parent7ef6656b1e5bfbc7499013d3b38b093b6b2f31ec (diff)
snow: remove an obsolete av_assert2
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: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavcodec/g2meet.c')
0 files changed, 0 insertions, 0 deletions