[FFmpeg-devel] [PATCH] make 16bit YUV formats compatible with NE avcodec_get_pix_fmt

Lars Täuber lars.taeuber
Tue Aug 25 21:25:07 CEST 2009

Hi there!

This patch makes it possible to use a Non-Endian 16-bit YUV formats like RGB48, GRAY16 and others.
It mainly supports the if clause in avcodec_get_pix_fmt (libavcodec/imgconvert.c:567):
        snprintf(name2, sizeof(name2), "%s%s", name, X_NE("be", "le"));

ffmpeg ... -pix_fmt yuv420p16 ...

These 16bit YUV formats are supported since April this year so it shouldn't break any application.
Only FFV1 makes use of 16bit YUV formats yet and it still doesn't work. (see issue 1321)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yuv16.diff
Type: text/x-diff
Size: 7760 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090825/1050d24e/attachment.diff>

More information about the ffmpeg-devel mailing list