| 327 | } |
| 328 | |
| 329 | AVProgram *av_find_program_from_stream(AVFormatContext *ic, AVProgram *last, int s) |
| 330 | { |
| 331 | for (unsigned i = 0; i < ic->nb_programs; i++) { |
| 332 | if (ic->programs[i] == last) { |
| 333 | last = NULL; |
| 334 | } else { |
| 335 | if (!last) |
| 336 | for (unsigned j = 0; j < ic->programs[i]->nb_stream_indexes; j++) |
| 337 | if (ic->programs[i]->stream_index[j] == s) |
| 338 | return ic->programs[i]; |
| 339 | } |
| 340 | } |
| 341 | return NULL; |
| 342 | } |
| 343 | |
| 344 | int av_find_default_stream_index(AVFormatContext *s) |
| 345 | { |
no outgoing calls
no test coverage detected