changeset 3261:61bf38dbf774 libavcodec

Fix SIGSEGV in rv10-null-pointer-500k.rm. patch by Wolfgang Scherer, Wolfgang__ . __Scherer__ @ __gmx__ . __de
author diego
date Sat, 15 Apr 2006 12:52:01 +0000
parents 525c73deb1d5
children b7d637f68f49
files rv10.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rv10.c	Fri Apr 14 20:45:08 2006 +0000
+++ b/rv10.c	Sat Apr 15 12:52:01 2006 +0000
@@ -737,7 +737,7 @@
         rv10_decode_packet(avctx, buf, buf_size);
     }
 
-    if(s->mb_y>=s->mb_height){
+    if(s->current_picture_ptr != NULL && s->mb_y>=s->mb_height){
         ff_er_frame_end(s);
         MPV_frame_end(s);