From 51d6852f43774165beefee96a9e875db5e3a8189 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 30 Dec 2008 19:49:27 +0000 Subject: [PATCH] All non zero returns of rm_assemble_video_frame() are errors, check things accordingly. Originally committed as revision 16398 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rmdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 2471f94..43fec70 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -590,7 +590,7 @@ ff_rm_parse_packet (AVFormatContext *s, ByteIOContext *pb, if (st->codec->codec_type == CODEC_TYPE_VIDEO) { rm->current_stream= st->id; - if(rm_assemble_video_frame(s, pb, rm, ast, pkt, len) == 1) + if(rm_assemble_video_frame(s, pb, rm, ast, pkt, len)) return -1; //got partial frame } else if (st->codec->codec_type == CODEC_TYPE_AUDIO) { if ((st->codec->codec_id == CODEC_ID_RA_288) || -- 2.7.4