[FFmpeg-cvslog] snowenc: dont crash with gray but exit with an error msg.

Michael Niedermayer git at videolan.org
Thu Jan 26 20:09:06 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 26 19:41:59 2012 +0100| [22eef8d738bfd56c2149b3de46bdc729eaa3d05f] | committer: Michael Niedermayer

snowenc: dont crash with gray but exit with an error msg.

Fixes Ticket839

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22eef8d738bfd56c2149b3de46bdc729eaa3d05f
---

 libavcodec/snowenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index ab31533..284e755 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -218,7 +218,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
 //    case PIX_FMT_YUV444P:
 //    case PIX_FMT_YUV422P:
     case PIX_FMT_YUV420P:
-    case PIX_FMT_GRAY8:
+//     case PIX_FMT_GRAY8:
 //    case PIX_FMT_YUV411P:
 //    case PIX_FMT_YUV410P:
         s->colorspace_type= 0;



More information about the ffmpeg-cvslog mailing list