Mercurial > mplayer.hg
changeset 26294:42bb503a2522
Set correct codec tag for raw rgb in mov, fixes
http://samples.mplayerhq.hu/mov/rawbgr24.mov
author | reimar |
---|---|
date | Sat, 05 Apr 2008 08:49:07 +0000 |
parents | 6391385d7367 |
children | c8a489c8cae8 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Fri Apr 04 19:38:06 2008 +0000 +++ b/libmpdemux/demux_lavf.c Sat Apr 05 08:49:07 2008 +0000 @@ -360,6 +360,12 @@ 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;