Commit 404b1dbe authored by michael's avatar michael

All non zero returns of rm_assemble_video_frame() are errors, check things

accordingly.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16398 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent da31b7b3
......@@ -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) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment