changeset 5629:7e5ebda833e9 libavcodec

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
author benoit
date Mon, 03 Sep 2007 08:46:24 +0000
parents cf88751d8ab7
children 327f714d69c0
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sat Sep 01 21:03:17 2007 +0000
+++ b/h264.c	Mon Sep 03 08:46:24 2007 +0000
@@ -7968,6 +7968,7 @@
         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;
     }