[FFmpeg-cvslog] avformat/mpegts: Do not ignore registration descriptors when probing is enabled

Michael Niedermayer git at videolan.org
Wed Jun 10 23:51:37 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 10 23:16:59 2015 +0200| [c465254fbf18c9fa133aa5514dc429c2ae15ed3d] | committer: Michael Niedermayer

avformat/mpegts: Do not ignore registration descriptors when probing is enabled

This is required for the (not yet in git) private stream detection/export,
no other testcase known

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c465254fbf18c9fa133aa5514dc429c2ae15ed3d
---

 libavformat/mpegts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index aeb2335..eff6819 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1758,7 +1758,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
     case 0x05: /* registration descriptor */
         st->codec->codec_tag = bytestream_get_le32(pp);
         av_log(fc, AV_LOG_TRACE, "reg_desc=%.4s\n", (char *)&st->codec->codec_tag);
-        if (st->codec->codec_id == AV_CODEC_ID_NONE)
+        if (st->codec->codec_id == AV_CODEC_ID_NONE || st->request_probe > 0)
             mpegts_find_stream_type(st, st->codec->codec_tag, REGD_types);
         break;
     case 0x52: /* stream identifier descriptor */



More information about the ffmpeg-cvslog mailing list