[FFmpeg-soc] [soc]: r5921 - mms/mmsh.c
spyfeng
subversion at mplayerhq.hu
Wed Aug 18 18:29:00 CEST 2010
Author: spyfeng
Date: Wed Aug 18 18:28:59 2010
New Revision: 5921
Log:
use AVERROR(EIO) instead of AVERROR_IO.
Modified:
mms/mmsh.c
Modified: mms/mmsh.c
==============================================================================
--- mms/mmsh.c Wed Aug 18 18:24:56 2010 (r5920)
+++ mms/mmsh.c Wed Aug 18 18:28:59 2010 (r5921)
@@ -117,7 +117,7 @@ static int read_data_packet(MMSHContext
av_log(NULL, AV_LOG_ERROR,
"Data packet length %d exceeds the in_buffer size %d\n",
len, sizeof(mms->in_buffer));
- return AVERROR_IO;
+ return AVERROR(EIO);
}
res = url_read_complete(mms->mms_hd, mms->in_buffer, len);
dprintf(NULL, "Data packet len = %d\n", len);
@@ -129,7 +129,7 @@ static int read_data_packet(MMSHContext
av_log(NULL, AV_LOG_ERROR,
"Chunk length %d exceed packet length %d\n",
len, mms->asf_packet_len);
- return -1;
+ return AVERROR_INVALIDDATA;
} else {
memset(mms->in_buffer + len, 0, mms->asf_packet_len - len); // padding
}
@@ -170,7 +170,7 @@ static int get_http_header_data(MMSHCont
av_log(NULL, AV_LOG_ERROR,
"Asf header packet len = %d exceed the asf header buf size %d\n",
len, mms->asf_header_size);
- return AVERROR_IO;
+ return AVERROR(EIO);
}
res = url_read_complete(mms->mms_hd, mms->asf_header, len);
if (res != len) {
@@ -193,7 +193,7 @@ static int get_http_header_data(MMSHCont
av_log(NULL, AV_LOG_ERROR,
"Other packet len = %d exceed the in_buffer size %d\n",
len, sizeof(mms->in_buffer));
- return AVERROR_IO;
+ return AVERROR(EIO);
}
res = url_read_complete(mms->mms_hd, mms->in_buffer, len);
if (res != len) {
@@ -324,7 +324,7 @@ static int handle_chunk_type(MMSHContext
case CHUNK_TYPE_END:
mmsh->chunk_seq = 0;
av_log(NULL, AV_LOG_ERROR, "The stream is end.\n");
- return AVERROR_IO;
+ return AVERROR(EIO);
case CHUNK_TYPE_STREAM_CHANGE:
mms->header_parsed = 0;
if ((res = get_http_header_data(mmsh)) != 0) {
More information about the FFmpeg-soc
mailing list