From patchwork Wed Sep 13 17:12:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 5134 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp1115360jaa; Wed, 13 Sep 2017 10:20:47 -0700 (PDT) X-Received: by 10.28.157.1 with SMTP id g1mr2851722wme.140.1505323247383; Wed, 13 Sep 2017 10:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505323247; cv=none; d=google.com; s=arc-20160816; b=xYyE5QL1A+w15y5svG9p7iT4dY0+FXu4VgexvqWQETHEAayuuLQ4pn86i14aUam6u6 I12p7bzijPtDIoWuX1vJNe8I4F2PqCWjxzgUZeQvZEFD7a9tB0aWAkBaHD+hRoAw+Tb8 M84hCYziFkBEDJMLaR5IXPtR85NyUXMdhYoX8m+vklqk34HEh7k8RCSsNVz8al6FPwK8 k24NAj1WVSnyiI2qOv/vHeKHa7r1AJcXdbfwIHOJ8zMl6UhoZw+QzmqKhSFmusxxA95V icCxGPc3yCostIs1SoqUGdkNeMecEW7RpNrk8HOcedlxzhlai3ssFhGGJeEPo+ksHQYQ yzqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to :arc-authentication-results; bh=WU1G4psUITFEVwBtB3aIpRe3VFv5fQVscoyAIF5X7Dc=; b=MgNSd79apDxvfC12r5wFKb53+XHT+8wFY/v1EGhj9tnsEB28eGuHxtVlBKOwVl06ql QjtOcPjqLPuKsh20ua7eD4u2kdIs2xLZHNwiPxCSch0CjwLAf7NWVIuPAzie3RLQpQZz AJFk9xCCuKM9CITQ8W8ixCyow4pduA4Gsu94ocH0CIc7L3pUmgD7RKrAmi+/oXRaGFem GWWxVT4AYy4OF0gYAlXQo+AiLrtYWFaPc+FVFahniW1x10pAss2KfCGu1rSx9sAuP+LS Knl8E3941EI7BKE61ppmDKF16g2Cp18OQM6A3C9p0IY8VdOICGfHRgcxO9aXYUBK1tbP ZnQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=WYMoamNo; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i184si1480602wmg.93.2017.09.13.10.20.46; Wed, 13 Sep 2017 10:20:47 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=WYMoamNo; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 18DE2689C66; Wed, 13 Sep 2017 20:20:38 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it0-f45.google.com (mail-it0-f45.google.com [209.85.214.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7FCFB689A2C for ; Wed, 13 Sep 2017 20:20:31 +0300 (EEST) Received: by mail-it0-f45.google.com with SMTP id v19so4257196ite.0 for ; Wed, 13 Sep 2017 10:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yesa822AsV6HExC3tDBBOZ7zbV2t5Ivkl+T5CTYhk9I=; b=WYMoamNoX54TWhNou+WGdWN0GIyMl28J2AO9t4XPl6YJDRvmHE5C42alNVEZxcKKVa SSatIEPVrnYfN1KzXx4CxXtUejgJmxfXMgBlr9B5+CjmorTIpCluy/xtkIV+zkqzbt7z XFfSZcUv+qwHaDYEbQyRbh/Bi7SpCHYV2YejlOQvN2juccuCZifhfnBnN2d1qybLxUsl JhHh3ckN/At/OvIg/4XzfpNUOsieHLyVzyVCS0fTTlD8NWt7kdSauWADTD2xMLsuUIyj G5BedZdIzRTe9VOFDq3gdXxQDhhG71o1H8pVq7bQXp6/yiGcOsn9EdwgCSpR9DE4tmZT h3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yesa822AsV6HExC3tDBBOZ7zbV2t5Ivkl+T5CTYhk9I=; b=TDvzG1DJ3tphSYrmgLGDlFUmWbZbUyFKFHpPMimT5pJwq/1BHljPbjVHIA8qmR1vz8 e4e56LAam2CF2etTt/qvRL5axBWYUGx9HVOTdRT5XH2aAO385APsZCXNgN85BOYMEMxa 31JpRbWF4oxNPDZiul+jGjPOgFzul85j7peLsdGKbM5gUAJk6Gz/GOG5Ztnbexl/jVq0 mWVCtJ5AT8KqOBLFJLvJvyKQxlGpln1MO4VI0EevM1u2Z4UIzy/67f7OYPLCvtDS94mG vLTKycdZZ3KUXfp8MkcWAwI7L5ev+fu/PhLJYtYg6di0brPsYYS8cdUuRBgnxrrK1RjW dzUA== X-Gm-Message-State: AHPjjUjTlPTVgIfxjXXcrBICi1ctDUsSCqkEJ18CzEQrTggMwMEXWa8e 1NwnNcerxoauAtblZAQr5t+RDy22g7sHWnKjuFo= X-Google-Smtp-Source: AOwi7QCbpfQzQJW31fWbCAlL7/tgwr7Pi9rS8suT0ZzW5QK5ORPeb9Php2Ak8ws7Aa8VeN6uMtqUpHxCDgMukggjkmM= X-Received: by 10.36.215.195 with SMTP id y186mr5783893itg.3.1505322757807; Wed, 13 Sep 2017 10:12:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.36.72 with HTTP; Wed, 13 Sep 2017 10:12:17 -0700 (PDT) From: Carl Eugen Hoyos Date: Wed, 13 Sep 2017 19:12:17 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH]lavf/mpegts: Consider 0x0f just a hint towards aac X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch fixes ticket #6657. Please comment, Carl Eugen From d806a243e97de8c245958dc6f8d2646217cc5105 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 13 Sep 2017 19:05:10 +0200 Subject: [PATCH] lavf/mpegts: Consider stream_type 0x0f just a hint toward AAC. It is also used in the wild to signal latm. Fixes ticket #6657. --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 4d2f5c6..53cbcfb 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -814,7 +814,7 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes, st->codecpar->codec_tag = pes->stream_type; mpegts_find_stream_type(st, pes->stream_type, ISO_types); - if (pes->stream_type == 4) + if (pes->stream_type == 4 || pes->stream_type == 0x0f) st->request_probe = 50; if ((prog_reg_desc == AV_RL32("HDMV") || prog_reg_desc == AV_RL32("HDPR")) && -- 1.7.10.4