Skip to content

Commit

Permalink
mpegts-mythtv.c: remove customization to parsing of subtitling_descri…
Browse files Browse the repository at this point in the history
…ptor

This has no functional change since MythTV only uses the MythTV addition
AVStream::carousel_id if AVStream::codecpar::codec_id == AV_CODEC_ID_DSMCC_B.
  • Loading branch information
ulmus-scott committed Jul 3, 2024
1 parent 875ba2a commit ca5a144
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2080,18 +2080,8 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
extradata[4] = get8(pp, desc_end); /* subtitling_type */
memcpy(extradata, *pp, 4); /* composition_page_id and ancillary_page_id */
extradata += 5;
#ifdef UPSTREAM_TO_MYTHTV

*pp += 4;
#else
{
int comp_page = get16(pp, desc_end);
int anc_page = get16(pp, desc_end);
int sub_id = (anc_page << 16) | comp_page;
if (sub_id && (st->codecpar->codec_id == AV_CODEC_ID_DVB_SUBTITLE))
st->carousel_id = sub_id;
}
#endif
}

language[i * 4 - 1] = 0;
Expand Down

0 comments on commit ca5a144

Please sign in to comment.