[FFmpeg-cvslog] vc1dec: use av_log_ask_for_sample for odd sprites

Michael Niedermayer git at videolan.org
Wed Mar 6 13:52:34 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Mar  6 13:45:53 2013 +0100| [2dd2ee96eb95da7d0cd96198d72296902453fac2] | committer: Michael Niedermayer

vc1dec: use av_log_ask_for_sample for odd sprites

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

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

 libavcodec/vc1dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index ff04508..2130c74 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5294,7 +5294,7 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx)
             v->output_height > 1 << 14) return -1;
 
         if ((v->sprite_width&1) || (v->sprite_height&1)) {
-            av_log(avctx, AV_LOG_ERROR, "odd sprite\n");
+            av_log_ask_for_sample(avctx, "odd sprites are not supported\n");
             return AVERROR_PATCHWELCOME;
         }
     }



More information about the ffmpeg-cvslog mailing list