[Ffmpeg-devel] [PATCH] RGB Raw ecoding

Javier garcia garcofra
Wed Aug 30 13:49:42 CEST 2006


Hello,

Creating a AVI file with rawvideo as a codec and any of the following 
formats don't work:

PIX_FMT_PAL8
PIX_FMT_RGB555
PIX_FMT_RGB565
PIX_FMT_BGR24
PIX_FMT_RGBA32

The fourCC for those formats should be 0 but avi_write_header stores YUV420I 
as default if 0 is the current value for codec_tag.

I propose as a fix, just, to move the line {CODEC_ID_RAWVIDEO,0}, from the 
end of const CodecTag codec_bmp_tags[] to the begining of the 
CODEC_ID_RAWVIDEO block (file libavformat/riff.c).

Best regards,
Javi

_________________________________________________________________
Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con 
MSN Entretenimiento. http://entretenimiento.msn.es/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: riff.c
Type: text/x-csrc
Size: 17166 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060830/6f9d5b78/attachment.c>



More information about the ffmpeg-devel mailing list