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

Nico Sabbi nicola_sabbi
Tue Oct 16 22:58:19 CEST 2007


Il Sunday 14 October 2007 16:54:23 Nico Sabbi ha scritto:
> 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]) {

ping.
Attached patch, when used with the other one, permits to specify to 
ffmpeg the program desired (-programid N)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_program3.diff
Type: text/x-diff
Size: 3096 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071016/827add5b/attachment.diff>



More information about the ffmpeg-devel mailing list