Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libav
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-11-05 13:14:48 +0300
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-11-05 13:14:48 +0300
commit5acdd6e6e2fb181b24e63d0b3ee20dd2fca9478f (patch)
tree204c613d7ce42030fcfe61c26c834446a3c3f3cf /libav
parent9eb826478c0fea0137eacad09c662682b80ad216 (diff)
* don't show header errors when eof is reached
Originally committed as revision 1165 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav')
-rw-r--r--libav/asf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libav/asf.c b/libav/asf.c
index cdbcd7f7fb..bf2b942e03 100644
--- a/libav/asf.c
+++ b/libav/asf.c
@@ -969,12 +969,14 @@ static int asf_get_packet(AVFormatContext *s)
int rsize = 11;
int c = get_byte(pb);
if (c != 0x82) {
- printf("BAD HRD %x at:%Ld\n", c, url_ftell(pb));
+ if (!url_feof(pb))
+ printf("ff asf bad header %x at:%Ld\n", c, url_ftell(pb));
return -EIO;
}
if ((c & 0x0f) == 2) { // always true for now
if (get_le16(pb) != 0) {
- printf("ff asf BAD NO ZERO\n");
+ if (!url_feof(pb))
+ printf("ff asf bad non zero\n");
return -EIO;
}
}
@@ -1022,7 +1024,7 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
url_fskip(pb, ret);
ret = asf_get_packet(s);
//printf("READ ASF PACKET %d r:%d c:%d\n", ret, asf->packet_size_left, pc++);
- if (ret < 0)
+ if (ret < 0 || url_feof(pb))
return -EIO;
asf->packet_time_start = 0;
continue;