vd_ffmpeg.c: fix one case of "-lavdopts vstats" crashing
commit49b31c2b43b9853bc3a347be7d914e27839d1f61
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 1 May 2011 20:21:00 +0000 (1 20:21 +0000)
committerUoti Urpala <uau@mplayer2.org>
Wed, 29 Jun 2011 03:30:49 +0000 (29 06:30 +0300)
tree946442d5461da269900ea7dce6a3afde4ee9632d
parent6283d4d6bb65e75041da638cb5532af9581ec1a8
vd_ffmpeg.c: fix one case of "-lavdopts vstats" crashing

Fix segfault with -lavdopts vstats and some codecs.
The vstats option relies on avctx->coded_frame being filled.
Unfortunately not all codecs do that (e.g. VP8) thus causing
NULL dereference.
FFmpeg code seems to always check if coded_frame != NULL,
so we should do the same.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33347 b3059339-0415-0410-9bf9-f77b7e298cf2
libmpcodecs/vd_ffmpeg.c