From patchwork Thu Oct 26 15:58:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_Gro=C3=9Fe?= X-Patchwork-Id: 5703 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp976660jah; Thu, 26 Oct 2017 09:00:11 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QXt+H9kwMamTXn0QBkyFpV599e6JjD7N+kRIoyi+/2mFostOXs/0LK0GbETNzRYnjql2RZ X-Received: by 10.223.171.161 with SMTP id s30mr5584373wrc.194.1509033611099; Thu, 26 Oct 2017 09:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509033611; cv=none; d=google.com; s=arc-20160816; b=dXqfnedIMbBrphZHfhOmcr3xsBmYceHnY5rdOeCgrg3p9aKMye/ypUqMUHaMgswanY pD+VlvN/YxNF4CPal88N4DnwoJFfyD1Kd7PAl9hxXDa7CdYHUuvtHGWHbBxCr8768Owq T9SgBfJXRp74wXY6rtqrYU7OA2ARn8J3F6zfFTXNGYypK1FpK1dQWo4nfIRK7nrDlyVJ EryPG9NouNV66XlNSF9t6UqAtOzKI3qzSs5ZvmE7C2JjITw2PBoYcyWBv38pcib1rXuo zI8KlQQIntusqVY/HLETfnatNXtAi0baCK0QrKkJ7gWzlEDt/COPfXFN5TSCFeNa59Rl S6LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to:arc-authentication-results; bh=4xXR4DU8xY+ys6klv23N0J/P2Tjoue7l2v9HyWAM4fE=; b=banjNUttoWzi2ADC9GNe8Wl+NCLssMsQu2a2f3PLwEVjzV29pRvyTxel+eDUPW5aSH iFCgFqnnmRfBt/kA4aCUgfTx86+cM4Wt3gB4rxJs771g+zqVY05rThHfIVOqNN8aRDWA d/ZbgH6bGmEszGEy5Tjww+jlbXhN2wOs9B0nO3COs+t9HGA5TY+h1GZ+FZkG+9yhyzwl CWjKqodG7hDhdYH1/0n/BPaQ/pV0CixorVsc84YIeoW9gTjIOyzknNqDZHT5AW4WeW4k qheAS2DAx0q77MlFkMkCEdcTVEsxy6Rp93OvzT2EEsCkQ/Qf/J0JkjdKdVVL5ZbmqF4I 28LQ== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id p8si4069894wrh.512.2017.10.26.09.00.10; Thu, 26 Oct 2017 09:00:11 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7147368A617; Thu, 26 Oct 2017 18:58:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from james.theweblords.de (james.theweblords.de [217.11.55.87]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DC4FD68A5E8 for ; Thu, 26 Oct 2017 18:58:50 +0300 (EEST) Received: (qmail 24033 invoked by uid 210); 26 Oct 2017 15:58:58 -0000 X-Qmail-Scanner-Diagnostics: from wl-r3-231.rz.tu-ilmenau.de (petronios@theweblords.de@wl-r3-231.rz.tu-ilmenau.de) by james (envelope-from , uid 201) with qmail-scanner-2.10st (mhr: 1.0. spamassassin: 3.4.1. perlscan: 2.10st. Clear:RC:1(141.24.16.231):. Processed in 0.045407 secs); 26 Oct 2017 15:58:58 -0000 Received: from wl-r3-231.rz.tu-ilmenau.de (HELO montepegro.fem.tu-ilmenau.de) (petronios@theweblords.de@141.24.16.231) by james.theweblords.de with ESMTPA; 26 Oct 2017 15:58:58 -0000 From: =?UTF-8?q?Peter=20Gro=C3=9Fe?= To: ffmpeg-devel@ffmpeg.org Date: Thu, 26 Oct 2017 17:58:40 +0200 Message-Id: <20171026155840.16816-8-pegro@friiks.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171026155840.16816-1-pegro@friiks.de> References: <20171026155840.16816-1-pegro@friiks.de> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 7/7] dashenc: copy stream frame rate to output stream 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 Cc: =?UTF-8?q?Peter=20Gro=C3=9Fe?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Leads to setting of DefaultDuration in Matroska muxer based on frame rate instead of timebase. Fixes playback in Chrome. Signed-off-by: Peter Große --- libavformat/dashenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index b12a37a2e5..2e5cac2384 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -750,6 +750,7 @@ static int dash_init(AVFormatContext *s) avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar); st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio; st->time_base = s->streams[i]->time_base; + st->avg_frame_rate = s->streams[i]->avg_frame_rate; ctx->avoid_negative_ts = s->avoid_negative_ts; ctx->flags = s->flags;