[FFmpeg-cvslog] r19193 - trunk/libavcodec/dv.c

bcoudurier subversion
Mon Jun 15 00:41:30 CEST 2009


Author: bcoudurier
Date: Mon Jun 15 00:41:30 2009
New Revision: 19193

Log:
print error when dv frame profile cannot be found

Modified:
   trunk/libavcodec/dv.c

Modified: trunk/libavcodec/dv.c
==============================================================================
--- trunk/libavcodec/dv.c	Mon Jun 15 00:34:28 2009	(r19192)
+++ trunk/libavcodec/dv.c	Mon Jun 15 00:41:30 2009	(r19193)
@@ -1120,8 +1120,10 @@ static int dvvideo_decode_frame(AVCodecC
     DVVideoContext *s = avctx->priv_data;
 
     s->sys = dv_frame_profile(s->sys, buf, buf_size);
-    if (!s->sys || buf_size < s->sys->frame_size || dv_init_dynamic_tables(s->sys))
+    if (!s->sys || buf_size < s->sys->frame_size || dv_init_dynamic_tables(s->sys)) {
+        av_log(avctx, AV_LOG_ERROR, "could not find dv frame profile\n");
         return -1; /* NOTE: we only accept several full frames */
+    }
 
     if (s->picture.data[0])
         avctx->release_buffer(avctx, &s->picture);



More information about the ffmpeg-cvslog mailing list