Commit 1046f91b authored by michael's avatar michael

consistant error return for asf_get_packet()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7657 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 237b1639
......@@ -466,6 +466,10 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
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 @@ static int asf_get_packet(AVFormatContext *s)
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{
......
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