[FFmpeg-cvslog] avcodec/h263dec: use PIX_FMT_GRAY8 when the user specified CODEC_FLAG_GRAY
Michael Niedermayer
git at videolan.org
Sat May 9 01:25:37 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 9 01:10:25 2015 +0200| [9025bc588ad441b9b0eccd69aa91caf5d2ac49ac] | committer: Michael Niedermayer
avcodec/h263dec: use PIX_FMT_GRAY8 when the user specified CODEC_FLAG_GRAY
Fixes Ticket4542
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9025bc588ad441b9b0eccd69aa91caf5d2ac49ac
---
libavcodec/h263dec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 7c87f78..c47f5b1 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -48,6 +48,9 @@ static enum AVPixelFormat h263_get_format(AVCodecContext *avctx)
if (avctx->codec->id == AV_CODEC_ID_MSS2)
return AV_PIX_FMT_YUV420P;
+ if (CONFIG_GRAY && (avctx->flags & CODEC_FLAG_GRAY))
+ return AV_PIX_FMT_GRAY8;
+
return avctx->pix_fmt = ff_get_format(avctx, avctx->codec->pix_fmts);
}
More information about the ffmpeg-cvslog
mailing list