diff options
author | wm4 <wm4@mplayer2.org> | 2012-02-16 17:30:22 +0100 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-02-25 16:29:52 +0200 |
commit | e796c7495cab78e0468c9c3a76b1bcaa3fcd1798 (patch) | |
tree | 34b6939a7bc47350de22ed59f9803e39305afbbe /mplayer.c | |
parent | da52c9400defebc3f5840acc1f9eb0ead1a759cb (diff) | |
download | mpv-e796c7495cab78e0468c9c3a76b1bcaa3fcd1798.tar.bz2 mpv-e796c7495cab78e0468c9c3a76b1bcaa3fcd1798.tar.xz |
screenshot: fix libav API use (pix_fmt and some other things)
Libavcodec started checking that avctx->pix_fmt is set when opening
an encoder. The existing code (originally from vf_screenshot.c) only
set it afterwards, which now made screenshots fail. Fix the code to
set parameters before calling avcodec_open2().
Also fix some minor things, which seems to make it work for other
encoders. This could be used to add more libavcodec based image
writers. Fix memory leak (missing av_free(avctx)).
Diffstat (limited to 'mplayer.c')
0 files changed, 0 insertions, 0 deletions