Mercurial > libavformat.hg
changeset 1716:01b3cc392466 libavformat
consistant error return for asf_get_packet()
author | michael |
---|---|
date | Mon, 22 Jan 2007 21:38:33 +0000 |
parents | f8c5d2c076d5 |
children | 02b8757d2e72 |
files | asf.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/asf.c Mon Jan 22 21:33:26 2007 +0000 +++ b/asf.c Mon Jan 22 21:38:33 2007 +0000 @@ -466,6 +466,10 @@ default: var = defval; break; \ } +/** + * + * @return <0 in case of an error + */ static int asf_get_packet(AVFormatContext *s) { ASFContext *asf = s->priv_data; @@ -483,7 +487,7 @@ if (get_le16(pb) != 0) { if (!url_feof(pb)) av_log(s, AV_LOG_ERROR, "ff asf bad non zero\n"); - return AVERROR_IO; + return -1; } rsize+=2; /* }else{