[FFmpeg-devel] [PATCH] better reporting of programs

Nico Sabbi nicola_sabbi
Sun Oct 14 16:54:23 CEST 2007


Il Sunday 14 October 2007 13:29:44 Nico Sabbi ha scritto:
> +    if(ic->nb_programs) {
> +        int j, k;
> +        for(j=0; j<ic->nb_programs; j++) {
> +        av_log(NULL, AV_LOG_INFO, "  Program %d",
> ic->programs[j]->id); +        if(ic->programs[j]->name)
> +            av_log(NULL, AV_LOG_INFO, " \"%s\"\n",
> ic->programs[j]->name); +            for(k=0;
> k<ic->programs[j]->nb_stream_ids; k++) { +                for(i=0;
> i<ic->nb_streams; i++) {
> +                    if(ic->streams[i]->id !=
> ic->programs[j]->stream_id[k]) { +                       


the last  line should read:

if(ic->streams[i]->id == ic->programs[j]->stream_id[k]) {




More information about the ffmpeg-devel mailing list