aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpenc_jpeg.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-05-06 15:34:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-10 02:13:11 +0200
commitbf665557691571632ff22f5457e79d44a3045dfe (patch)
treedade11f27d9d915369701244a37c82fabc8cd7cc /libavformat/rtpenc_jpeg.c
parent994538281645e1f12a0e238b5b7225566e51a98c (diff)
downloadffmpeg-bf665557691571632ff22f5457e79d44a3045dfe.tar.gz
diracdec: check that block length is valid
In init_planes p->xblen and p->yblen are set to: p->xblen = s->plane[0].xblen >> s->chroma_x_shift; p->yblen = s->plane[0].yblen >> s->chroma_y_shift; These are later used as block_w and block_h arguments of s->vdsp.emulated_edge_mc. If one of them is 0 it triggers an av_assert2 in emulated_edge_mc: av_assert2(start_x < end_x && block_w > 0); av_assert2(start_y < end_y && block_h > 0); Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 75fc81c8318505aa7946e05a9bee08d47241fc66) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpenc_jpeg.c')
0 files changed, 0 insertions, 0 deletions