# HG changeset patch # User benoit # Date 1188809184 0 # Node ID 7e5ebda833e9d1de50627439c2f49c456b16e895 # Parent cf88751d8ab7a7da6b93cf1edf60a690eef7fc85 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 diff -r cf88751d8ab7 -r 7e5ebda833e9 h264.c --- 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; }