From patchwork Sun May 13 10:41:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 8938 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp2850411jad; Sun, 13 May 2018 03:42:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqBJvPWP9pl92LJIaoouG9/6CSeC9phS8KICkG3J08++4VLprHUKL/iAmrbCKXHb+NRqbJS X-Received: by 2002:adf:9306:: with SMTP id 6-v6mr3943050wro.175.1526208172661; Sun, 13 May 2018 03:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526208172; cv=none; d=google.com; s=arc-20160816; b=GnXI1peK86xLN6GdC82Ke15EouMsjPwsW9O4tYvdXp+aKPIRRH2ibfZMfE94ZU6mFe odPrGY0Vmerk0X1JUtPmQrwMQLUev5Tm3Hsi/QUZN8vS85hhDHYYmTzKeT+BCEv3K8Ej apLP+9UyE99S5m2rlMDHB+wAs8EbOsSplNYL7QxK5ZEPuk6NedVOB5NItuJ2UnlOQW/a zZXT4pqNfsflQGGoh95ujTCIxFud2YFltqYzO6ZCuY6LErZz+RvXGStznb9WV69xFjd6 uC1pXuyKOCPcrQNx9TRCsxY+3I0ySbeL9SZoNQr5IQcTp/rbbyCbRbTvcXXt+aFoLUAZ TOJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=rYvIVUKXoeJfDVYBDUC/YXoRH76vroHC9zXqLXq4XJA=; b=Y8u5DT4rPBu4Iolsq4n5SjFGr4Yg/PQ9x11zpmvXuePo8bTKpTNM89kA3xpVqtknOi /fAOOacju1GZoey6we/07+OJrUjBE/8wyJb2F4saOtq4p94YCZb3qE2esokLll6MdinP TM4/qCt8+6U3jywn2p/gbzAV2TzrbUz3189dO98zxQCN0y3N08X6b2jinhqeTFJ+rJG3 jUevxyQnSqsL7JWkmI8TrOk5xKj0NUOxTpyB3vnR6QuwHRYE/Kwv+VpKEIt4Tbe+ssdU 629jJcuyRcSwWq1Ej/iVaWL2/wlmP52R2oFmaPmCz1+NOrEbrhTzg4vbcTF0lLrLnKrd wbPQ== 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 i12-v6si6398577wrb.223.2018.05.13.03.42.51; Sun, 13 May 2018 03:42:52 -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 18C2D68A5A6; Sun, 13 May 2018 13:42:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe01-2.mx.upcmail.net (vie01a-qmta-pe01-2.mx.upcmail.net [62.179.121.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BC82C68A4DC for ; Sun, 13 May 2018 13:42:06 +0300 (EEST) Received: from [172.31.218.37] (helo=vie01a-dmta-pe03-1.mx.upcmail.net) by vie01a-pqmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1fHoSh-0008LT-Qd for ffmpeg-devel@ffmpeg.org; Sun, 13 May 2018 12:42:43 +0200 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1fHoSb-0008Di-VE for ffmpeg-devel@ffmpeg.org; Sun, 13 May 2018 12:42:37 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id lmiV1x01D0S5wYM01miWVq; Sun, 13 May 2018 12:42:30 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 13 May 2018 12:41:03 +0200 Message-Id: <20180513104103.31080-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.0 Subject: [FFmpeg-devel] [PATCH] avformat/flvenc: Avoid truncating timestamp before avio_write_marker() 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" Signed-off-by: Michael Niedermayer --- libavformat/flvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index e8af48cb64..168ff9ffb8 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -873,7 +873,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar; FLVContext *flv = s->priv_data; FLVStreamContext *sc = s->streams[pkt->stream_index]->priv_data; - unsigned ts; + int64_t ts; int size = pkt->size; uint8_t *data = NULL; int flags = -1, flags_size, ret;