summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-23 03:42:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-23 03:42:12 +0200
commitb64e70436e9c6a5a738a12d14187859208d0abb9 (patch)
tree0d828cf72d0c63eff755605251ef846b5dfcc24a /libavformat/mpegts.c
parentb368428fc0b54762944fb7f7dae8093114c595b1 (diff)
avformat/mpegts: Use STREAM_TYPE_PRIVATE_DATA instead of 6
Suggested-by: Wolfgang Lorenz <wl-chmw@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 84946e3cfd..37043a69f4 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;