Mercurial > libavcodec.hg
changeset 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 | eb5916527064 |
children | 4cac4001dd23 |
files | raw.c rawdec.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/raw.c Fri Jun 12 16:00:26 2009 +0000 +++ b/raw.c Fri Jun 12 17:39:56 2009 +0000 @@ -48,6 +48,7 @@ { PIX_FMT_BGR555, MKTAG('B', 'G', 'R', 15) }, { PIX_FMT_RGB565, MKTAG('R', 'G', 'B', 16) }, { PIX_FMT_BGR565, MKTAG('B', 'G', 'R', 16) }, + { PIX_FMT_RGB565, MKTAG( 3 , 0 , 0 , 0 ) }, /* quicktime */ { PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },
--- 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;