diff options
author | Marton Balint <cus@passwd.hu> | 2011-08-22 23:42:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-08-27 22:06:09 +0200 |
commit | dacd827b81e442a3fbed0628a951c8f15f3591e3 (patch) | |
tree | b2e4f820c34fc3a4d777e3ec9a68517c0f88eb90 /libavformat/avformat.h | |
parent | 941bb552c6e08b40eb7d7842df19285cd650edd0 (diff) | |
download | ffmpeg-dacd827b81e442a3fbed0628a951c8f15f3591e3.tar.gz |
Rename find_program_from_stream to av_find_program_from_stream and add it to avformat.h
Also extend the functionality to use the last found program to start the search
after that program.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 5e73f8dc06..e435881264 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1233,6 +1233,18 @@ int av_find_stream_info(AVFormatContext *ic); int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options); /** + * Find the programs which belong to a given stream. + * + * @param ic media file handle + * @param last the last found program, the search will start after this + * program, or from the beginning if it is NULL + * @param s stream index + * @return the next program which belongs to s, NULL if no program is found or + * the last program is not among the programs of ic. + */ +AVProgram *av_find_program_from_stream(AVFormatContext *ic, AVProgram *last, int s); + +/** * Find the "best" stream in the file. * The best stream is determined according to various heuristics as the most * likely to be what the user expects. |