diff options
author | Zaheer Abbas Merali <zaheer@localhost.localdomain> | 2009-04-10 19:24:26 +0200 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-05-03 12:03:16 -0400 |
commit | f82893cfc2fa7dfd780fa3517371fd0db83f2e02 (patch) | |
tree | 17af21e5bb77023572e70018fa6d86186fc355b7 /gst/mpegdemux/gstmpegtsdemux.c | |
parent | 7f8bb188289135efa73d44ba8d65c82021abc030 (diff) | |
download | gst-plugins-bad-f82893cfc2fa7dfd780fa3517371fd0db83f2e02.tar.gz gst-plugins-bad-f82893cfc2fa7dfd780fa3517371fd0db83f2e02.tar.bz2 gst-plugins-bad-f82893cfc2fa7dfd780fa3517371fd0db83f2e02.zip |
mpegtsdemux: add hack specific for itvhd
itvhd masks its h264 video stream as a private stream making it harder for
other set top boxes to decode. this checks for specific program number, video
pid and stream type combination before declaring it as h264.
Diffstat (limited to 'gst/mpegdemux/gstmpegtsdemux.c')
-rw-r--r-- | gst/mpegdemux/gstmpegtsdemux.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c index 91e26efc..4464cdf8 100644 --- a/gst/mpegdemux/gstmpegtsdemux.c +++ b/gst/mpegdemux/gstmpegtsdemux.c @@ -1287,11 +1287,10 @@ gst_mpegts_stream_parse_pmt (GstMpegTSStream * stream, /* set as elementary */ ES_stream->PID_type = PID_TYPE_ELEMENTARY; /* set stream type */ - if (program_number == 10510 && stream_type == ST_VIDEO_MPEG1) + /* hack for ITV HD (sid 10510, video pid 3401 */ + if (program_number == 10510 && entry.PID == 3401 && + stream_type == ST_PRIVATE_DATA) stream_type = ST_VIDEO_H264; - else - g_print ("program number: %d stream type: %d pid: %d\n", - program_number, stream_type, entry.PID); ES_stream->stream_type = stream_type; ES_stream->flags &= ~MPEGTS_STREAM_FLAG_STREAM_TYPE_UNKNOWN; |