[MPlayer-dev-eng] [PATCH] DVB TS subtitle not working if corresponding PID doesn't occur at beginning for -demux lavf

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Oct 4 08:20:47 CEST 2010


On Mon, Oct 04, 2010 at 01:13:47PM +0800, KS Ng - dmbth wrote:
> The patch is amended. Please review!

Please attach the patch, your mailer obviously mangles
it otherwise (adding line-breaks where ther should be none).

> @@ -589,6 +592,12 @@
>     if(av_read_frame(priv->avfc, &pkt) < 0)
>         return 0;
> 
> +    if( priv->nb_streams_last != priv->avfc->nb_streams ) {
> +        for(i=priv->nb_streams_last; i<priv->avfc->nb_streams; i++)
> +            handle_stream(demux, priv->avfc, i);
> +        priv->nb_streams_last = priv->avfc->nb_streams;
> +    }

As I said, the if () is now completely pointless.


More information about the MPlayer-dev-eng mailing list