avviddec: Fix pool reallocation logic
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 20 Aug 2015 15:02:11 +0000 (08:02 -0700)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 20 Aug 2015 23:23:23 +0000 (16:23 -0700)
commit6e590fe498d792c32a73af2cd94c849c0dbd0a58
tree83b7f230e63201d48c1ccd9a346acdd2551fcc2e
parent173718d146d5210c47c2775d80daa893afb2f5eb
avviddec: Fix pool reallocation logic

Some check where incorect and also unsafe. The only reliable information
in get_buffer2 is the picture width/height really. The side effect is
that the width/height of the internal pool endup padded, so when we
switch we also need to switch to the a new width/height, hence we save
the pool info.

https://bugzilla.gnome.org/show_bug.cgi?id=753869
ext/libav/gstavviddec.c
ext/libav/gstavviddec.h