mpegvideo: synchronize AVFrame pointers in ERContext fully
authorJanne Grunau <janne-libav@jannau.net>
Wed, 11 Jun 2014 17:40:28 +0000 (19:40 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Wed, 11 Jun 2014 19:28:27 +0000 (21:28 +0200)
commit0ddc53dabbc6f636d062b187ea27934610aaad30
treee591547f2e77c613d079ebc90e635ee7aa20215d
parent641e57230b460bef52c88e61087d97c223910bea
mpegvideo: synchronize AVFrame pointers in ERContext fully

Since error resilience uses AVFrame pointers instead of references it
has to copy NULL pointers too. After a codec flush the last/next frame
pointers in MpegEncContext are NULL and the old pointers remaining in
ERContext are invalid. Fixes a crash in vlc for android thumbnailer.
Reported and debugged by Adrien Maglo <magsoft@videolan.org>.
libavcodec/mpegvideo.c