Changes between Version 1 and Version 2 of Ticket #2873, comment 3
- Timestamp:
- Aug 21, 2013, 12:02:13 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2873, comment 3
v1 v2 4 4 5 5 {{{ 6 int av_compare_streams(const void *st1, const void *st2) 7 { 8 return ((((AVStream *)st1)->id > ((AVStream *)st2)->id) ? 1 : 9 (((AVStream *)st1)->id < ((AVStream *)st2)->id) ? -1 : 0); 10 } 11 6 12 void av_sort_streams_by_id(AVFormatContext *s) 7 13 qsort((void *)s->streams, s->nb_streams, sizeof(s->streams[0]), av_compare_streams); … … 12 18 } 13 19 14 int av_compare_streams(const void *st1, const void *st2)15 {16 return ((((AVStream *)st1)->id > ((AVStream *)st2)->id) ? 1 :17 (((AVStream *)st1)->id < ((AVStream *)st2)->id) ? -1 : 0;18 }19 20 20 21 }}} 21 22 22 2.- Add the prototype of first functionto "avformat.h"23 2.- Add the prototypes to "avformat.h" 23 24 24 25 {{{ 25 26 void av_sort_streams_by_id(AVFormatContext *s); 27 int av_compare_streams(const void *st1, const void *st2); 26 28 }}} 27 29 … … 38 40 }}} 39 41 40 This code should be executed beforethe call to "avformat_find_stream_info".42 This code should be executed after the call to "avformat_find_stream_info". 41 43 42 44 4.- Do the equivalent change in ffmpeg_opt.c, also inside "open_input_file" function.


