mpegvideo: set reference/pict_type on generated reference frames
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:05:19 +0000 (20:05 -0400)
commit07558d0b9fa0923e8b53f6eb7f2b69c4d631f11a
tree8310a7d0000026afd539e8922f403a5876dade9a
parent27ac9585c97d35b809382be5634c8e5f7211243a
mpegvideo: set reference/pict_type on generated reference frames

Otherwise the generic code will unref them, which can then result in
last_picture_ptr == current_picture_ptr, which causes deadlocks at least
in rv40.

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