Mercurial > libavcodec.hg
comparison ffv1.c @ 2512:a7779d61c8ce libavcodec
Fixed decoding of 410p ffv1 files patch by (Milan Cutka <cutka szm sk>)
author | michael |
---|---|
date | Thu, 17 Feb 2005 19:03:12 +0000 |
parents | f67b63ed036d |
children | d3885f927bc7 |
comparison
equal
deleted
inserted
replaced
2511:366e8a09eb6e | 2512:a7779d61c8ce |
---|---|
887 switch(16*f->chroma_h_shift + f->chroma_v_shift){ | 887 switch(16*f->chroma_h_shift + f->chroma_v_shift){ |
888 case 0x00: f->avctx->pix_fmt= PIX_FMT_YUV444P; break; | 888 case 0x00: f->avctx->pix_fmt= PIX_FMT_YUV444P; break; |
889 case 0x10: f->avctx->pix_fmt= PIX_FMT_YUV422P; break; | 889 case 0x10: f->avctx->pix_fmt= PIX_FMT_YUV422P; break; |
890 case 0x11: f->avctx->pix_fmt= PIX_FMT_YUV420P; break; | 890 case 0x11: f->avctx->pix_fmt= PIX_FMT_YUV420P; break; |
891 case 0x20: f->avctx->pix_fmt= PIX_FMT_YUV411P; break; | 891 case 0x20: f->avctx->pix_fmt= PIX_FMT_YUV411P; break; |
892 case 0x33: f->avctx->pix_fmt= PIX_FMT_YUV410P; break; | 892 case 0x22: f->avctx->pix_fmt= PIX_FMT_YUV410P; break; |
893 default: | 893 default: |
894 av_log(f->avctx, AV_LOG_ERROR, "format not supported\n"); | 894 av_log(f->avctx, AV_LOG_ERROR, "format not supported\n"); |
895 return -1; | 895 return -1; |
896 } | 896 } |
897 }else if(f->colorspace==1){ | 897 }else if(f->colorspace==1){ |