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
This commit is contained in:
parent
aed464654b
commit
51d6852f43
@ -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) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user