# HG changeset patch # User rbultje # Date 1279638704 0 # Node ID 130d730d1c5ee6c869ed61aa7866e7d131eaffa6 # Parent 54715a725139bd9cba1c1786492105a891c20108 Explicitely set the size of the "ff_asf_head1_guid" header chunk, this is part of the spec and causes problems otherwise. Patch by Zhentan Feng . diff -r 54715a725139 -r 130d730d1c5e mmst.c --- a/mmst.c Tue Jul 20 15:07:31 2010 +0000 +++ b/mmst.c Tue Jul 20 15:11:44 2010 +0000 @@ -20,6 +20,14 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + +/* References + * MMS protocol specification: + * [1]http://msdn.microsoft.com/en-us/library/cc234711(PROT.10).aspx + * ASF specification. Revision 01.20.03. + * [2]http://msdn.microsoft.com/en-us/library/bb643323.aspx + */ + #include "avformat.h" #include "internal.h" #include "libavutil/intreadwrite.h" @@ -473,6 +481,8 @@ dprintf(NULL, "Too many streams.\n"); return -1; } + } else if (!memcmp(p, ff_asf_head1_guid, sizeof(ff_asf_guid))) { + chunksize = 46; // see references [2] section 3.4. This should be set 46. } p += chunksize; }