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)
committerAnton Khirnov <anton@khirnov.net>
Fri, 3 Jan 2014 15:36:43 +0000 (16:36 +0100)
commitfeded990e3ef9af4a0b827d5b6d8fe86f0b94942
tree6e975bb334fc9e6797b4fecf116c7076e6857550
parent58f0d164def52147e9a9ee4dad9fe8d0d334623f
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