[FFmpeg-devel] [PATCH] mp4a-latm rtp output & dynamic payload type from URL

Luca Abeni lucabe72
Thu Dec 17 16:25:23 CET 2009

Hi Michael,

Michael Niedermayer wrote:
>>> Ok, thanks. I'll have a look at using AVStream.id for the payload type in
>>> the RTP muxer
>> Unfortunaly AVStream.id is always 0 when raw h263/amr streamed.
>> But AVOutputStream.file_index can be used to increase rtp dynamic type.
>> Here is simple patch that adds AVFormatContext.file_index and increase
>> payload_type for every dynamic stream.
>> --- a/libavformat/avformat.h
>> +++ b/libavformat/avformat.h
>> @@ -536,6 +536,7 @@ typedef struct AVFormatContext {
>>      void *priv_data;
>>      ByteIOContext *pb;
>>      unsigned int nb_streams;
>> +    int file_index;      /**< file index, used in rtp-output for dynamic payload type */
>>      AVStream *streams[MAX_STREAMS];
> didnt review your patch but you cant add things into the middle ofpublic
>  structs

If this is fixed, would the addition of a "file_index" field be acceptable?
(I am asking in case I do not manage to use AVStream.id for this purpose).


More information about the ffmpeg-devel mailing list