From patchwork Sat Nov 11 00:07:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stebbins X-Patchwork-Id: 5897 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp3994427jah; Fri, 10 Nov 2017 16:07:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMactdd29l9F68rw5ouMFFXaytlExR0y/ktbbL7WHbwcMhhP+DYZ4Lq2ZyYPg112g2h1Kc3U X-Received: by 10.28.122.22 with SMTP id v22mr1402575wmc.47.1510358863999; Fri, 10 Nov 2017 16:07:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510358863; cv=none; d=google.com; s=arc-20160816; b=DhYDZvebawTKiD9+jeXwIXR+wLLkvKkj16x/B/47ZyXwgbiqbn60Bu1hgiTPc7r+xH lKESL+JrWL0tuBUA6H5HndPhLVIlVqGqesq9hWkpxbIfAMPp4Pl8SKeHE4yR8omEZ0Sg 9LeLPzTXkjpbKeb8VM/ozLqAK+Tcwo+Pz2IB7PJUreUy1Ye0gutaJ3d81mMAO2SS+rhX lvKj5hyehsHCoq41gcpxlQofrBDDlqgnqwhnpYRqfXAu8jqLvOjyZ2my4+y00YdHBq5G obtL7en+NndZFSyWPRvzlHju8OEDIjzGJjiVFK1NpRn4xhtFXC08JFqsZlTjLV4Ned2V xjEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to:arc-authentication-results; bh=phNrJJzi7frd0IejrE44Rk66tFLUZtAsFGu8ZwXKWIg=; b=ZA9LaDRY3JyO16KcSPTKzMFCmaKrS5r6uV4Zn1XyMTZnQXoV0BA7S7cYNozstE98C/ sUAZxLSifS/j2E/YTsxyJOnF3mGruiOY6Na5/emfGXqIbnDmPXeaDZHmucGvMh3sYxBV AINsPnvA3wzs4k8LG0ehlzzYSPp6wZs3pDjMFdPw1z+2CaYzzZHh4vXMfGBqgwKaPqoI jbH5lawwbWBwg72NoNtin93+VJDTSggZUEpY7bUFD2njoyLQTf8yC/g/PWfHn9hJzGlu 0HqCq50K1TTaYpT45043HOXpHVSnAfrXA7hi9qAQV2eBpovtEWAtDt+Aa05LwNK89fWt Owfg== 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 y1si6464373wrg.438.2017.11.10.16.07.39; Fri, 10 Nov 2017 16:07:43 -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; 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 2699E689E8E; Sat, 11 Nov 2017 02:07:24 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.jetheaddev.com (mail.jetheaddev.com [70.164.99.34]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B2268689F00 for ; Sat, 11 Nov 2017 02:07:17 +0200 (EET) Received: from dionysus.jetheaddev.com (10.13.12.63) by cas.jetheaddev.com (192.168.13.27) with Microsoft SMTP Server (TLS) id 14.3.351.0; Fri, 10 Nov 2017 16:07:28 -0800 Received: from dionysus.jetheaddev.com (localhost [127.0.0.1]) by dionysus.jetheaddev.com (8.15.2/8.14.7) with ESMTP id vAB07San012850 for ; Fri, 10 Nov 2017 16:07:28 -0800 Received: (from jstebbins@localhost) by dionysus.jetheaddev.com (8.15.2/8.15.2/Submit) id vAB07SP8012849 for ffmpeg-devel@ffmpeg.org; Fri, 10 Nov 2017 16:07:28 -0800 From: John Stebbins To: Date: Fri, 10 Nov 2017 16:07:28 -0800 Message-ID: <20171111000728.12805-1-jstebbins@jetheaddev.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 X-Originating-IP: [10.13.12.63] Subject: [FFmpeg-devel] [PATCH] avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packet 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" --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 2b2411ffe7..93a5a00105 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1457,6 +1457,7 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index) out_pkt.pts = st->parser->pts; out_pkt.dts = st->parser->dts; out_pkt.pos = st->parser->pos; + out_pkt.flags |= pkt->flags & AV_PKT_FLAG_DISCARD; if (st->need_parsing == AVSTREAM_PARSE_FULL_RAW) out_pkt.pos = st->parser->frame_offset;