fraps: release reference buffer on pix_fmt change.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 24 Feb 2012 22:11:04 +0000 (14:11 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 24 Feb 2012 22:28:15 +0000 (14:28 -0800)
commit830f70442a87a31f7c75565e9380e3caf8333b8a
treeffa682da994d65702e2a34d33b4bd4422f30b629
parent87840eeb7115a8949ab589a82f24bc25ee647b78
fraps: release reference buffer on pix_fmt change.

Prevents crash when trying to copy from a non-existing plane in e.g.
a RGB32 reference image to a YUV420P target image

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/fraps.c