avcodec/vp9: assert on sane size in update_size().
authorClément Bœsch <u@pkh.me>
Sat, 16 Nov 2013 21:47:32 +0000 (22:47 +0100)
committerClément Bœsch <u@pkh.me>
Sat, 16 Nov 2013 21:47:54 +0000 (22:47 +0100)
commit484f8d77c6ecf995ac89d1071d3be0cae1f5326c
tree94f71bb07dc850e31cd4269b9123874c2fe00603
parentc20a7ce62d02d29e5222595c76b0a2563c9348b4
avcodec/vp9: assert on sane size in update_size().

w and h are both read as uint16 + 1 so this can not happen. A similar
change was introduced in 97962b2 / 72ca830, with the
av_log()+AVERROR_INVALIDDATA form, suggesting it could be triggerable
somehow.

Change suggested by Ronald S. Bultje.
libavcodec/vp9.c