]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpegts.c
electronicarts: move video stream properties into dedicated structure
[ffmpeg] / libavformat / mpegts.c
index 84946e3cfd5cdd9106446579e25110530b0e4197..37043a69f4d6712eb9d921b21b48d670392af688 100644 (file)
@@ -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;