]> git.sesse.net Git - ffmpeg/commitdiff
All non zero returns of rm_assemble_video_frame() are errors, check things
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Dec 2008 19:49:27 +0000 (19:49 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Dec 2008 19:49:27 +0000 (19:49 +0000)
accordingly.

Originally committed as revision 16398 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rmdec.c

index 2471f94a0055858624758d4f2f1290fdf38171d5..43fec701a71cd272ed497d5c746b96e634c3a539 100644 (file)
@@ -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) ||