[MPlayer-dev-eng] [PATCH] fix vo_png
Ivan Kalvachev
ikalvachev at gmail.com
Tue Feb 14 00:34:19 CET 2012
After merging libav changes, ffmpeg no longer works with vo_png.
The problem is that avcodec_open2() function now wants a valid pix_fmt
to be set in avctx, but the current vo_png opens the encoder in
preinit() function, long before the exact pixel format
(RGB8/15/16/24/32) is known.
To fix this I've moved the avcodec_open2() function to
vo_png::config() and added a check for changed pixel format in case of
second call to config() without uninit() (this is valid behavior).
Please check the patch, I want to commit it soon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: png_ff.patch
Type: application/octet-stream
Size: 1522 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120214/155960d8/attachment.obj>
More information about the MPlayer-dev-eng
mailing list