[Ffmpeg-devel] [PATCH] ASF Stream bitrate GUID parsing....

Ryan Martell rdm4
Thu Jan 4 23:45:22 CET 2007


To support my native mms code, I need to parse the bitrate GUID  
header of the ASF file if it's present.  This small patch adds that  
information to the ASFContext.

A couple of quick notes:

1) The indentation is actually correct now (the block below is  
indented incorrectly) on the lines:
-       } else if (!memcmp(&g, &extended_content_header, sizeof 
(GUID))) {
+        } else if (!memcmp(&g, &stream_bitrate_guid, sizeof(GUID))) {

2) I removed:
  ASFStream streams[128];     /* it's max number and it's not that  
big */
from the ASFContext, as it was unused (and big).  I replaced it with  
a 128 uint32_t array, which seems fair.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: asf_patch.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070104/6d862f46/attachment.txt>
-------------- next part --------------

More information about the ffmpeg-devel mailing list