History

ffv1dec: use PIX_FMT_0RGB32 when there is no transparency plane

Michael Niedermayer committed 14 years ago

Commit 4b03d961 parent 2027d071 file · +2 −1Browse files

Unified · Split

libavcodec/ffv1.c+2−1
@@ -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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t