Mercurial > libavformat.hg
changeset 4140:68230afdf021 libavformat
All non zero returns of rm_assemble_video_frame() are errors, check things
accordingly.
author | michael |
---|---|
date | Tue, 30 Dec 2008 19:49:27 +0000 |
parents | b5f97b5a8925 |
children | 657498d1307e |
files | rmdec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Sun Dec 28 23:25:17 2008 +0000 +++ b/rmdec.c Tue Dec 30 19:49:27 2008 +0000 @@ -590,7 +590,7 @@ 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) ||