[FFmpeg-cvslog] rv10: consider B frames in low delay streams invalid.

Michael Niedermayer git at videolan.org
Tue Nov 13 18:04:19 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 13 17:59:18 2012 +0100| [c74cd99986fc8c148a10ebcf13ab2b8d8c6de561] | committer: Michael Niedermayer

rv10: consider B frames in low delay streams invalid.

Fix assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c74cd99986fc8c148a10ebcf13ab2b8d8c6de561
---

 libavcodec/rv10.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index 21dec46..a5181b3 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -332,6 +332,10 @@ static int rv20_decode_picture_header(RVDecContext *rv)
         return -1;
     }
 
+    if(s->low_delay && s->pict_type==AV_PICTURE_TYPE_B){
+        av_log(s->avctx, AV_LOG_ERROR, "low delay B\n");
+        return -1;
+    }
     if(s->last_picture_ptr==NULL && s->pict_type==AV_PICTURE_TYPE_B){
         av_log(s->avctx, AV_LOG_ERROR, "early B pix\n");
         return -1;



More information about the ffmpeg-cvslog mailing list