From patchwork Sun Nov 13 00:01:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodger Combs X-Patchwork-Id: 1400 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.90.1 with SMTP id o1csp435345vsb; Sat, 12 Nov 2016 16:18:19 -0800 (PST) X-Received: by 10.28.182.4 with SMTP id g4mr4611588wmf.15.1478996299078; Sat, 12 Nov 2016 16:18:19 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b197si17311268wmb.95.2016.11.12.16.18.18; Sat, 12 Nov 2016 16:18:19 -0800 (PST) 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; 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 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 0DCA5689D3E; Sun, 13 Nov 2016 02:18:16 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it0-f68.google.com (mail-it0-f68.google.com [209.85.214.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 559E4689A1A for ; Sun, 13 Nov 2016 02:18:09 +0200 (EET) Received: by mail-it0-f68.google.com with SMTP id c20so2394059itb.0 for ; Sat, 12 Nov 2016 16:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=dRkJog9hNYpf0Vgbo59id2I8Y5/WzxQ1KdP1kZEA7BY=; b=lFOI0LsxUymSGcB6HBHVuiABCxnvbmCmg33qqYfaqJLRFQDQDBlpYWlsy6sGtKa7K7 vaXHvFPuJzrlfjbtIXtaWLG22O/LaOkvZUyytQmZHDaFB3TOcOmIEHhhxhZluHnJtlMd zc1/WeV36yltSyE3gA/3iT4dhI/8MEU7q/4Ua8MgtrUBNBBTfPjrIBpMyAEJzbn+C5FR YliL8MlrwPSuk4itKqbUDzJ732gS+3jJ+y8ea2UaNuwZeKZJxnN+liJYDKgxdBwcuWjw Xp92lBE3LTDzrsXSxPGoiJ0F+Mi4cBpUVzN5c5VxKTTF+dYVRgl/CPp7KSut5v0VC+Mz mr9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=dRkJog9hNYpf0Vgbo59id2I8Y5/WzxQ1KdP1kZEA7BY=; b=baXjg4YHdKN8BeJPHUzyr0u5k9il9b4YtyWOg97WGMOy2RNpWbHSyIaM4my6qGvoD5 iLnw/4ys3W8KWAHJtfNLsjmV8LDFLXIi+52Uu2v8afJAKy0AqyOzhZ/iMgzeOG2hNqww sOv+PNXxR3rPBxY0hyUT6eKj4ob9Q8pRBueCyDuI/mvv4sYlHvtGejHKVa9r7fHJnmE9 zYqHHXHQBtDUN7fyOMTHfoO60BguZdG5gbawgB70eYE0eaguE3XMKBrh1hDc3ceaMoZv yNiERgn0/vRcLn1V78LmoPj8mijgW0FUIinTnRhUXtxyw6YNGNeQwgzObHh0sp3DFNJN D4JQ== X-Gm-Message-State: ABUngvdphCKZoEFtVuSKNDJjTXDiGN5J9Pd7hXaja1m/RoQxvpQdkeGEfxSOfJq4SdpNug== X-Received: by 10.107.39.137 with SMTP id n131mr17770557ion.90.1478995321703; Sat, 12 Nov 2016 16:02:01 -0800 (PST) Received: from Rodgers-MacBook-Pro.local.net (c-73-209-137-129.hsd1.il.comcast.net. [73.209.137.129]) by smtp.gmail.com with ESMTPSA id o21sm14554575itb.6.2016.11.12.16.02.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Nov 2016 16:02:01 -0800 (PST) From: Rodger Combs To: ffmpeg-devel@ffmpeg.org Date: Sat, 12 Nov 2016 18:01:58 -0600 Message-Id: <20161113000158.51823-1-rodger.combs@gmail.com> X-Mailer: git-send-email 2.10.2 Subject: [FFmpeg-devel] [PATCH] lavf/mux: don't warn about missing timestamps on attached pictures 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavformat/mux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mux.c b/libavformat/mux.c index 77823a4..963d006 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -575,6 +575,7 @@ static int compute_muxer_pkt_fields(AVFormatContext *s, AVStream *st, AVPacket * if (!s->internal->missing_ts_warning && !(s->oformat->flags & AVFMT_NOTIMESTAMPS) && + (!(st->disposition & AV_DISPOSITION_ATTACHED_PIC) || (st->disposition & AV_DISPOSITION_TIMED_THUMBNAILS)) && (pkt->pts == AV_NOPTS_VALUE || pkt->dts == AV_NOPTS_VALUE)) { av_log(s, AV_LOG_WARNING, "Timestamps are unset in a packet for stream %d. "