[Ffmpeg-cvslog] r7657 - trunk/libavformat/asf.c
michael
subversion
Mon Jan 22 22:38:34 CET 2007
Author: michael
Date: Mon Jan 22 22:38:33 2007
New Revision: 7657
Modified:
trunk/libavformat/asf.c
Log:
consistant error return for asf_get_packet()
Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c (original)
+++ trunk/libavformat/asf.c Mon Jan 22 22:38:33 2007
@@ -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{
More information about the ffmpeg-cvslog
mailing list