[FFmpeg-cvslog] avformat/mpegts: Use STREAM_TYPE_PRIVATE_DATA instead of 6

Michael Niedermayer git at videolan.org
Tue Jun 23 03:53:43 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 23 03:42:12 2015 +0200| [b64e70436e9c6a5a738a12d14187859208d0abb9] | committer: Michael Niedermayer

avformat/mpegts: Use STREAM_TYPE_PRIVATE_DATA instead of 6

Suggested-by: Wolfgang Lorenz <wl-chmw at gmx.de>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 84946e3..37043a6 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -838,7 +838,7 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes,
     if ((st->codec->codec_id == AV_CODEC_ID_NONE ||
             (st->request_probe > 0 && st->request_probe < AVPROBE_SCORE_STREAM_RETRY / 5)) &&
         !avcodec_is_open(st->codec) &&
-        stream_type ==  6) {
+        stream_type == STREAM_TYPE_PRIVATE_DATA) {
         st->codec->codec_type = AVMEDIA_TYPE_DATA;
         st->codec->codec_id   = AV_CODEC_ID_BIN_DATA;
         st->request_probe = AVPROBE_SCORE_STREAM_RETRY / 5;



More information about the ffmpeg-cvslog mailing list