aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv10.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-02-29 02:25:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-02-29 02:25:19 +0000
commitfddae1c30f0d509c3371a89f2af58ae388f496a1 (patch)
tree7a8d5d37359b57911ec9674cd7c613a7d33d4135 /libavcodec/rv10.c
parentc8a4ebbf278c0116631209de46d7db859e829a4c (diff)
downloadffmpeg-fddae1c30f0d509c3371a89f2af58ae388f496a1.tar.gz
skip b frames before first i frame
Originally committed as revision 2829 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r--libavcodec/rv10.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index adcc87cc95..11c9734fc0 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -360,6 +360,11 @@ static int rv20_decode_picture_header(MpegEncContext *s)
return -1;
}
+ if(s->last_picture_ptr==NULL && s->pict_type==B_TYPE){
+ av_log(s->avctx, AV_LOG_ERROR, "early B pix\n");
+ return -1;
+ }
+
if (get_bits(&s->gb, 1)){
av_log(s->avctx, AV_LOG_ERROR, "unknown bit set\n");
return -1;