Support decoding transport streams from Sony NXCAM.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 8 Nov 2011 09:30:37 +0000 (10:30 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 8 Nov 2011 09:30:37 +0000 (10:30 +0100)
Fixes ticket #617.

libavformat/mpegts.c

index e4daa7c..29a0f61 100644 (file)
@@ -617,7 +617,8 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes,
     st->codec->codec_tag = pes->stream_type;
 
     mpegts_find_stream_type(st, pes->stream_type, ISO_types);
-    if (prog_reg_desc == AV_RL32("HDMV") &&
+    if ((prog_reg_desc == AV_RL32("HDMV") ||
+         prog_reg_desc == AV_RL32("HDPR")) &&
         st->codec->codec_id == CODEC_ID_NONE) {
         mpegts_find_stream_type(st, pes->stream_type, HDMV_types);
         if (pes->stream_type == 0x83) {