]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpegts.c
libdts support by (Benjamin Zores <ben at geexbox dot org>)
[ffmpeg] / libavformat / mpegts.c
index 7da6aed9e63a3812f2f81d4bdc79f234d60161de..3dbd9478e28b3649ad1c78c5ca362b64acccce6a 100644 (file)
@@ -431,6 +431,7 @@ static void pmt_cb(void *opaque, const uint8_t *section, int section_len)
         case STREAM_TYPE_VIDEO_H264:
         case STREAM_TYPE_AUDIO_AAC:
         case STREAM_TYPE_AUDIO_AC3:
+        case STREAM_TYPE_AUDIO_DTS:
             add_pes_stream(ts, pid, stream_type);
             break;
         default:
@@ -753,6 +754,10 @@ static void mpegts_push_data(void *opaque,
                             codec_type = CODEC_TYPE_AUDIO;
                             codec_id = CODEC_ID_AC3;
                             break;
+                        case STREAM_TYPE_AUDIO_DTS:
+                            codec_type = CODEC_TYPE_AUDIO;
+                            codec_id = CODEC_ID_DTS;
+                            break;
                         default:
                             if (code >= 0x1c0 && code <= 0x1df) {
                                 codec_type = CODEC_TYPE_AUDIO;