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>
Sun, 7 Sep 2014 11:26:22 +0000 (13:26 +0200)
commit0d0f7f0ba43f64312ae4a05d97afecf1b7b1330c
tree0000300b35c7facac8e7197a556288142dcc6a5f
parent2762323c37511fbbc98b164c07620b9ebc59ec68
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>
libavcodec/mpegvideo.c