[FFmpeg-devel] [PATCH] options to set stream id (custom TS pid)

Mike Scheutzow mjs973
Thu Jun 17 23:10:47 CEST 2010


Michael Niedermayer wrote:
>> +/* indexed by output file stream index */
>> +static int streamid_map[MAX_STREAMS];
>>     
>
> how messy would it be to dynamically allocate this?
> or if not indexes should be checked to be withinn 0...MAX_STREAMS
> somewhere at least

The index value is properly range checked. It is done inside the 
parse_number_or_die() function:

idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, MAX_STREAMS-1);


-- 
Mike Scheutzow





More information about the ffmpeg-devel mailing list