[FFmpeg-cvslog] huffyuv: do not abort on unknown pix_fmt; instead, return an error.

Ronald S. Bultje git at videolan.org
Thu Mar 1 23:34:08 CET 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Thu Mar  1 09:41:22 2012 -0800| [63c9de6469005974288f4e4d89fc79a590e38c06] | committer: Ronald S. Bultje

huffyuv: do not abort on unknown pix_fmt; instead, return an error.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org

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

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

diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index 4f07808..bedaaf2 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -514,7 +514,7 @@ s->bgr32=1;
         }
         break;
     default:
-        assert(0);
+        return AVERROR_INVALIDDATA;
     }
 
     alloc_temp(s);



More information about the ffmpeg-cvslog mailing list