Mercurial > libavcodec.hg
comparison rv10.c @ 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 | c540147303fa |
comparison
equal
deleted
inserted
replaced
3260:525c73deb1d5 | 3261:61bf38dbf774 |
---|---|
735 } | 735 } |
736 }else{ | 736 }else{ |
737 rv10_decode_packet(avctx, buf, buf_size); | 737 rv10_decode_packet(avctx, buf, buf_size); |
738 } | 738 } |
739 | 739 |
740 if(s->mb_y>=s->mb_height){ | 740 if(s->current_picture_ptr != NULL && s->mb_y>=s->mb_height){ |
741 ff_er_frame_end(s); | 741 ff_er_frame_end(s); |
742 MPV_frame_end(s); | 742 MPV_frame_end(s); |
743 | 743 |
744 if (s->pict_type == B_TYPE || s->low_delay) { | 744 if (s->pict_type == B_TYPE || s->low_delay) { |
745 *pict= *(AVFrame*)s->current_picture_ptr; | 745 *pict= *(AVFrame*)s->current_picture_ptr; |