Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2007-09-03 12:46:24 +0400
committerBenoit Fouet <benoit.fouet@free.fr>2007-09-03 12:46:24 +0400
commit1c746a490deb6939fce5cd207e1ad7bb54820f02 (patch)
tree00926afc1db91a7815d466bbf9f2986f2b583793 /libavcodec
parent9fcbcca60a6d838924d662df95b194525254f0ac (diff)
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 Originally committed as revision 10286 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5ea99e1924..1649f712fa 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7968,6 +7968,7 @@ static int decode_frame(AVCodecContext *avctx,
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;
}