utils: fix avcodec_flush_buffers pre-reference counting compatibility
authorJanne Grunau <janne-libav@jannau.net>
Sat, 15 Jun 2013 19:11:55 +0000 (22:11 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 16 Jun 2013 13:10:58 +0000 (15:10 +0200)
commit985f34b75653d02eda8eb8def3412f8577f19b01
treeed0fd1c7c6720aab34d90dc306de55d42b80ab86
parentdf9f22d42b0905385629a9d368bb5a1eef2b45ef
utils: fix avcodec_flush_buffers pre-reference counting compatibility

The to_free AVframe must be freed just like the other ones.
Indeed, the calling application may expect all frames to be
released.

(This regression caused use-after-free in VLC with hwaccel.)

Signed-off-by: RĂ©mi Denis-Courmont <remi@remlab.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/utils.c