mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
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.
This commit is contained in:
parent
c5825f9e1d
commit
51fdc78786
1 changed files with 3 additions and 4 deletions
|
@ -1287,11 +1287,10 @@ gst_mpegts_stream_parse_pmt (GstMpegTSStream * stream,
|
||||||
/* set as elementary */
|
/* set as elementary */
|
||||||
ES_stream->PID_type = PID_TYPE_ELEMENTARY;
|
ES_stream->PID_type = PID_TYPE_ELEMENTARY;
|
||||||
/* set stream type */
|
/* 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;
|
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->stream_type = stream_type;
|
||||||
ES_stream->flags &= ~MPEGTS_STREAM_FLAG_STREAM_TYPE_UNKNOWN;
|
ES_stream->flags &= ~MPEGTS_STREAM_FLAG_STREAM_TYPE_UNKNOWN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue