huffyuv: do not abort on unknown pix_fmt; instead, return an error.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 1 Mar 2012 17:41:22 +0000 (09:41 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 1 Mar 2012 18:23:36 +0000 (10:23 -0800)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/huffyuv.c

index 4f07808..bedaaf2 100644 (file)
@@ -514,7 +514,7 @@ s->bgr32=1;
         }
         break;
     default:
-        assert(0);
+        return AVERROR_INVALIDDATA;
     }
 
     alloc_temp(s);