diff pngdec.c @ 12108:c35d7bc64882 libavcodec

Add new decoder property max_lowres and do not init decoder if requested value is higher.
author cehoyos
date Wed, 07 Jul 2010 21:23:36 +0000
parents aef934aa4787
children 8b28e74de2c0
line wrap: on
line diff
--- a/pngdec.c	Wed Jul 07 20:23:56 2010 +0000
+++ b/pngdec.c	Wed Jul 07 21:23:36 2010 +0000
@@ -667,5 +667,6 @@
     decode_frame,
     CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/,
     NULL,
+    .max_lowres = 5,
     .long_name = NULL_IF_CONFIG_SMALL("PNG image"),
 };