[FFmpeg-soc] [soc]: r5838 - mms/mmsh.c
spyfeng
subversion at mplayerhq.hu
Sat Jun 19 17:52:02 CEST 2010
Author: spyfeng
Date: Sat Jun 19 17:52:02 2010
New Revision: 5838
Log:
fix a bug for read packet.
now it works with the testlink mmsh://210.75.225.191:1755.
Modified:
mms/mmsh.c
Modified: mms/mmsh.c
==============================================================================
--- mms/mmsh.c Fri Jun 18 22:25:33 2010 (r5837)
+++ mms/mmsh.c Sat Jun 19 17:52:02 2010 (r5838)
@@ -508,6 +508,7 @@ static int mmsh_read(URLContext *h, uint
int res = 0;
MMSHContext *mms = h->priv_data;
+ do{
if (mms->asf_header_read_size < mms->asf_header_size) {
// copy asf header into buffer
char *pos;
@@ -517,6 +518,7 @@ static int mmsh_read(URLContext *h, uint
pos = mms->asf_header + mms->asf_header_read_size;
memcpy(buf, pos, size_to_copy);
mms->asf_header_read_size += size_to_copy;
+ res = size_to_copy;
if (mms->asf_header_read_size == mms->asf_header_size) {
av_freep(&mms->asf_header); // which contains asf header
}
@@ -531,6 +533,7 @@ static int mmsh_read(URLContext *h, uint
dprintf(NULL, "other situation!\n");
}
}
+ }while(!res);
return res;
}
More information about the FFmpeg-soc
mailing list