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 25497e8486..0380b7dcd9 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);
-- 
2.43.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to