[Ffmpeg-devel] [PATCH] Added another GUID to asf.[ch]

Panagiotis Issaris takis
Wed Feb 21 00:58:45 CET 2007


Michael Niedermayer schreef:
> Hi
>
> On Tue, Feb 20, 2007 at 02:17:49PM -0600, Ryan Martell wrote:
>   
>> On Feb 19, 2007, at 5:24 PM, Michael Niedermayer wrote:
>>     
>>> Hi
>>>
>>> On Mon, Feb 19, 2007 at 02:23:13PM -0600, Ryan Martell wrote:
>>>       
>>>> Hi--
>>>>
>>>> Attached patch adds the stream_bitrate GUID to the asf parsing code,
>>>> and set stream bitrate properties accordingly.
>>>>
>>>> Values are set but currently unused; but will be necessary for mms
>>>> parsing.
>>>>
>>>>         
>>> [...]
>>>       
>>>> @@ -345,6 +348,23 @@
>>>> +            uint16_t streams = get_le16(pb);
>>>>         
>>> this doesnt need to be exactly 16 bits
>>>
>>>       
>>>> +            for(j = 0; j < streams; j++) {
>>>> +                uint16_t flags;
>>>> +                uint32_t bitrate;
>>>> +                int stream_id;
>>>>         
>>> int stream_id, flags, bitrate;
>>> none of them needs to be exactly 32 or 16bits
>>>
>>>
>>> [...]
>>>       
>>>>     ASFStream streams[128];              ///< it's max number and  
>>>> it's not that big
>>>> +    uint32_t stream_bitrates[128]; ///< max number of streams,  
>>>> bitrate for each (for streaming)
>>>>     /* non streamed additonnal info */
>>>>     uint64_t nb_packets;                 ///< how many packets  
>>>> are there in the file, invalid if broadcasting
>>>>         
>>> please align the comment with the other comments
>>>
>>> [...]
>>>       
>> All done as requested.  See attached.
>>     
>
> looks ok
>   
Applied.

With friendly regards,
Takis





More information about the ffmpeg-devel mailing list