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)
committerSean McGovern <gseanmcg@gmail.com>
Mon, 14 Apr 2014 20:55:39 +0000 (16:55 -0400)
commitc9be276f8b040e7d441a77f774afe94b6f137be6
tree4bd01b7f2d0a2b2555d00cf5d05fbb6081c79ece
parentd8e89a37267f276afd404bd062e5112a336d1a36
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