From dd020e10254c85893e16f3f3637467ded4d415cc Mon Sep 17 00:00:00 2001 From: Alexander Slobodeniuk Date: Thu, 16 Apr 2026 19:56:17 +0200 Subject: [PATCH] avformat/mpegts: simplify ac3/eac3 descriptor handling those lines are literally the same, so removing the code duplication --- libavformat/mpegts.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 42f528822e..9c04d953c4 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2322,19 +2322,6 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type } break; case AC3_DESCRIPTOR: - { - int component_type_flag = get8(pp, desc_end) & (1 << 7); - if (component_type_flag) { - int component_type = get8(pp, desc_end); - int service_type_mask = 0x38; // 0b00111000 - int service_type = ((component_type & service_type_mask) >> 3); - if (service_type == 0x02 /* 0b010 */) { - st->disposition |= AV_DISPOSITION_DESCRIPTIONS; - av_log(ts ? ts->stream : fc, AV_LOG_DEBUG, "New track disposition for id %u: %u\n", st->id, st->disposition); - } - } - } - break; case ENHANCED_AC3_DESCRIPTOR: { int component_type_flag = get8(pp, desc_end) & (1 << 7);