[MPlayer-cvslog] r26326 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Sat Apr 5 10:49:07 CEST 2008
Author: reimar
Date: Sat Apr 5 10:49:07 2008
New Revision: 26326
Log:
Set correct codec tag for raw rgb in mov, fixes
http://samples.mplayerhq.hu/mov/rawbgr24.mov
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c (original)
+++ trunk/libmpdemux/demux_lavf.c Sat Apr 5 10:49:07 2008
@@ -360,6 +360,12 @@ static void handle_stream(demuxer_t *dem
priv->video_streams++;
bih=calloc(sizeof(BITMAPINFOHEADER) + codec->extradata_size,1);
+ if(codec->codec_id == CODEC_ID_RAWVIDEO) {
+ switch (codec->pix_fmt) {
+ case PIX_FMT_RGB24:
+ codec->codec_tag= MKTAG(24, 'B', 'G', 'R');
+ }
+ }
if(!codec->codec_tag)
codec->codec_tag= av_codec_get_tag(mp_bmp_taglists, codec->codec_id);
bih->biSize= sizeof(BITMAPINFOHEADER) + codec->extradata_size;
More information about the MPlayer-cvslog
mailing list