[FFmpeg-devel] [PATCH] avformat/mpegts: recognizes and export private streams

Michael Niedermayer michaelni at gmx.at
Tue Jun 23 03:56:56 CEST 2015


On Mon, Jun 22, 2015 at 04:16:00PM +0200, Wolfgang Lorenz wrote:
> One last thing:
> 
> Am Fri, 12 Jun 2015 22:06:43 +0200
> schrieb Wolfgang Lorenz <wl-chmw at gmx.de>:
> 
> > Am Fri, 12 Jun 2015 15:53:41 +0200
> > schrieb Michael Niedermayer <michaelni at gmx.at>:
> > 
> > > On Fri, Jun 12, 2015 at 12:38:19PM +0200, Wolfgang Lorenz wrote:
> > > > Am Fri, 12 Jun 2015 00:12:37 +0200
> > > > schrieb Wolfgang Lorenz <wl-chmw at gmx.de>:
> > > > 
> > > > > Am Thu, 11 Jun 2015 23:11:37 +0200
> > > > > schrieb Michael Niedermayer <michaelni at gmx.at>:
> > > > > 
> > > > > > On Thu, Jun 11, 2015 at 10:59:23PM +0200, Wolfgang Lorenz wrote:
> > > > > > > Hi Micheal,
> > > > > > > 
> > > > > > > Am Wed, 10 Jun 2015 23:40:10 +0200
> > > > > > > schrieb Michael Niedermayer <michaelni at gmx.at>:
> > > > > > > 
> > > > > > > > Based on patch by Wolfgang Lorenz <wl-chmw at gmx.de>
> > > > > > > > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > > > > > > > ---
> > > > > > > >  libavformat/mpegts.c |    7 +++++++
> > > > > > > >  1 file changed, 7 insertions(+)
> > > > > > > > 
> > > > > > > > diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> > > > > > > > index eff6819..7b35d7f 100644
> > > > > > > > --- a/libavformat/mpegts.c
> > > > > > > > +++ b/libavformat/mpegts.c
> > > > > > > > @@ -835,6 +835,13 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes,
> > > > > > > >          st->codec->codec_id  = old_codec_id;
> > > > > > > >          st->codec->codec_type = old_codec_type;
> > > > > > > >      }
> > > > > > > > +    if ((st->codec->codec_id == AV_CODEC_ID_NONE || st->request_probe == 1) &&
> > > > > > > > +        !avcodec_is_open(st->codec) &&
> > > > > > > > +        stream_type ==  6) {
> I've just seen, mpegts.h contains
>   #define STREAM_TYPE_PRIVATE_DATA    0x06
> 
> I think, comparing stream_type to STREAM_TYPE_PRIVATE_DATA, makes this
> code a little bit more verbose.

changed

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150623/942f6d09/attachment.asc>


More information about the ffmpeg-devel mailing list