summaryrefslogtreecommitdiff
path: root/libavcodec/svq1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-01-09 01:43:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-09 01:43:31 +0000
commite5ab4fdd8e9710e6de7ad02c808d6abec94c279b (patch)
tree91984697ca22d9c5b516db4290dd6a23f15d5f22 /libavcodec/svq1.c
parent4013fcf4afa5790bc2f5f2b36101123576cd2b69 (diff)
workaround dropable p frame after first frame bug
Originally committed as revision 1424 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.c')
-rw-r--r--libavcodec/svq1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index 77035f1f9a..363a90261c 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -1093,6 +1093,10 @@ static int svq1_decode_frame(AVCodecContext *avctx,
return result;
}
+ //FIXME this avoids some confusion for "B frames" without 2 references
+ //this should be removed after libavcodec can handle more flaxible picture types & ordering
+ if(s->pict_type==B_TYPE && s->last_picture.data[0]==NULL) return buf_size;
+
if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size;
if(MPV_frame_start(s, avctx) < 0)