Browse Source

consistant error return for asf_get_packet()

Originally committed as revision 7657 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 19 years ago
parent
commit
f7835507cb
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavformat/asf.c

+ 5
- 1
libavformat/asf.c View File

@@ -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{


Loading…
Cancel
Save