avcodec/mpegvideo: check that the context is initialized in ff_mpv_common_frame_size_...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 7 Sep 2014 11:00:47 +0000 (13:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 01:40:59 +0000 (03:40 +0200)
commit80aec733ada5ca4db143c9b75b4048df46648a21
tree69be1ce5df7609e88802b14e412024aae93c21bc
parent77bb6b5bcc845b84ca41e6f1dca16841ad30c1c0
avcodec/mpegvideo: check that the context is initialized in ff_mpv_common_frame_size_change()

The function otherwise would initialize the context without setting context_initialized
alternatively we could set context_initialized

Fixes valgrind anomalies related to ticket 3928

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0d0f7f0ba43f64312ae4a05d97afecf1b7b1330c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo.c