diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-10-27 00:02:23 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-10-27 00:02:23 +0000 |
commit | d6db1c9c6a331da88c3eca9b0afa939dbbf24651 (patch) | |
tree | c4059ef616e9dca7d87c6e61038d5cefe445ddba /libavcodec/rv10.c | |
parent | 5d9827bcf62a543d95ea27469e3e06153f352cda (diff) | |
download | ffmpeg-d6db1c9c6a331da88c3eca9b0afa939dbbf24651.tar.gz |
handle direct rendering buffer allocation failure
Originally committed as revision 1075 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r-- | libavcodec/rv10.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index f9b279b776..5932126c87 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -416,7 +416,8 @@ static int rv10_decode_packet(AVCodecContext *avctx, } if (s->mb_x == 0 && s->mb_y == 0) { - MPV_frame_start(s, avctx); + if(MPV_frame_start(s, avctx) < 0) + return -1; } #ifdef DEBUG |