Unified · Split
| @@ -1609,7 +1609,8 @@ static int read_header(FFV1Context *f){ · 1608 unmodified lines | |||
| 1609 | av_log(f->avctx, AV_LOG_ERROR, "chroma subsampling not supported in this colorspace\n"); | 1609 | av_log(f->avctx, AV_LOG_ERROR, "chroma subsampling not supported in this colorspace\n"); |
| 1610 | return -1; | 1610 | return -1; |
| 1611 | } | 1611 | } |
| 1612 | f->avctx->pix_fmt= PIX_FMT_RGB32; | 1612 | if(f->transparency) f->avctx->pix_fmt= PIX_FMT_RGB32; |
| 1613 | else f->avctx->pix_fmt= PIX_FMT_0RGB32; | ||
| 1613 | }else{ | 1614 | }else{ |
| 1614 | av_log(f->avctx, AV_LOG_ERROR, "colorspace not supported\n"); | 1615 | av_log(f->avctx, AV_LOG_ERROR, "colorspace not supported\n"); |
| 1615 | return -1; | 1616 | return -1; |