[FFmpeg-cvslog] r10286 - trunk/libavcodec/h264.c

benoit subversion
Mon Sep 3 10:46:24 CEST 2007


Author: benoit
Date: Mon Sep  3 10:46:24 2007
New Revision: 10286

Log:
Remove error raising when explicitely skipping frame
patch by Carl Eugen Hoyos: [cehoyos ag or at]
original thread:
[FFmpeg-devel] [PATCH] Don't let ctx->skip_frame>0 produce errors
date: 08/30/2007 01:30 PM


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Mon Sep  3 10:46:24 2007
@@ -7968,6 +7968,7 @@ static int decode_frame(AVCodecContext *
         return -1;
 
     if(!(s->flags2 & CODEC_FLAG2_CHUNKS) && !s->current_picture_ptr){
+        if (avctx->skip_frame >= AVDISCARD_NONREF || s->hurry_up) return 0;
         av_log(avctx, AV_LOG_ERROR, "no frame!\n");
         return -1;
     }




More information about the ffmpeg-cvslog mailing list