Mercurial > libavcodec.hg
diff rawdec.c @ 9845:45d331133468 libavcodec
Add new FOURCC (0x0003) for raw DIB video, set flip flag accordingly.
Fixes a few AVI files from what is probably a mobile phone video camera.
author | darkshikari |
---|---|
date | Fri, 12 Jun 2009 17:39:56 +0000 |
parents | 1cc354a5242c |
children | 5198794511a4 |
line wrap: on
line diff
--- a/rawdec.c Fri Jun 12 16:00:26 2009 +0000 +++ b/rawdec.c Fri Jun 12 17:39:56 2009 +0000 @@ -87,7 +87,8 @@ if (!context->buffer) return -1; - if(avctx->extradata_size >= 9 && !memcmp(avctx->extradata + avctx->extradata_size - 9, "BottomUp", 9)) + if((avctx->extradata_size >= 9 && !memcmp(avctx->extradata + avctx->extradata_size - 9, "BottomUp", 9)) || + avctx->codec_tag == MKTAG( 3 , 0 , 0 , 0 )) context->flip=1; return 0;