# HG changeset patch # User darkshikari # Date 1244828396 0 # Node ID 45d331133468d4f08a903fa304209d3ae712c683 # Parent eb591652706410ce7a6b02371cdab1ef9973354e 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. diff -r eb5916527064 -r 45d331133468 raw.c --- 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') }, diff -r eb5916527064 -r 45d331133468 rawdec.c --- 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;