[FFmpeg-devel] [PATCH] * mpegts demuxer should recognize private streams

Hendrik Leppkes h.leppkes at gmail.com
Fri May 29 23:11:31 CEST 2015

On Fri, May 29, 2015 at 10:45 PM, Wolfgang Lorenz <wl-chmw at gmx.de> wrote:
> The patch addresses this problem:
>   https://lists.ffmpeg.org/pipermail/libav-user/2014-September/007475.html
> What it does is this:
> * Except stream type 0x06 as a private stream. (AVMEDIA_TYPE_DATA, AV_CODEC_ID_NONE)
>   (It was necessary to convince mpegts_set_stream_info(), that AV_CODEC_ID_NONE
>    might be a valid codec id.)
> * Handle stream id 0xbd (private_stream_1). This stream uses PES headers, but needs
>   no further parsing (as there is no codec defined).

To simplify the patch, maybe you should use AV_CODEC_ID_BIN_DATA as
the codec id to indicate its generic binary data. That way you don't
need all the special-handling to allow CODEC_ID_NONE.

- Hendrik

More information about the ffmpeg-devel mailing list