[Ffmpeg-devel] Demuxing of .ts streams doesn't work anymore

Michael Niedermayer michaelni
Thu Jun 29 11:21:03 CEST 2006


Hi

On Wed, Jun 28, 2006 at 10:19:59PM +0100, M?ns Rullg?rd wrote:
[...]
> @@ -1932,17 +1932,18 @@
>          ret = av_read_frame_internal(ic, &pkt1);
>          if (ret < 0) {
>              /* EOF or error */
> -            ret = -1; /* we could not have all the codec parameters before EOF */
> +            int found = 0;

ret=-1

>              for(i=0;i<ic->nb_streams;i++) {
>                  st = ic->streams[i];
>                  if (!has_codec_parameters(st->codec)){
>                      char buf[256];
>                      avcodec_string(buf, sizeof(buf), st->codec, 0);
>                      av_log(ic, AV_LOG_INFO, "Could not find codec parameters (%s)\n", buf);
> -                    break;
> +                } else {
> +                    found++;

ret= 0

>                  }
>              }
> -            if (i == ic->nb_streams)
> +            if(found)
>                  ret = 0;

unneeded


and yes i ve no objections to it

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list