From patchwork Tue Oct 23 08:41:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveed Basha X-Patchwork-Id: 10755 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 61F4E44A55D for ; Tue, 23 Oct 2018 11:41:29 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B9EE468A1B4; Tue, 23 Oct 2018 11:41:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 059B068A0B1 for ; Tue, 23 Oct 2018 11:41:05 +0300 (EEST) Received: by mail-wm1-f52.google.com with SMTP id 189-v6so838537wmw.2 for ; Tue, 23 Oct 2018 01:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=W9dh06fbAg+BrU6Y+H/eqln0UQ3Z5xymLExIZy8wHIo=; b=Caqya8qowSTXzv+TStRFCyO1TbBXdB/TQmGQjfSj/onlXm+OUCT+ij+7NUGrSXmqHu In7pLML7eqjNaAQj2KDWnn/RUIsNSWhLpKnOgiE4y3O4lojTFcqg4pZA0QstQOvNUS7/ +cpeN+eSgFwJ7aMGnoO0PFMow2uzVncPyEefEwN5sguVn7vlvQYbr961SUvd1UbCcwyi ZwuUmpuuWwqjEkhYKV8FN6w0aSEzQ/svfBmNSVdUDSDA9T5tlFpxhQXUOz+bHsg105QE dfatmFbWFrTLRW8kuX2XV7vAHXd74Peuc3j9NQbvEo+g7a/D2YdBUlMiXZKg2aLfvGwE Zptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=W9dh06fbAg+BrU6Y+H/eqln0UQ3Z5xymLExIZy8wHIo=; b=irVQRSGm4YHKP8nFLoy0lYxJOZTs9dAHduKVWM6inhJ9bhjJqWyVHtC71w/Hn/R4qP mhMbDyCwUwFZi8GsOHkIOTEUg3g9CjKrsBuuFyqXZ6LO3MaqqhKBlByieZpRvan38xqU mxfRfSk8UrQ2Z8bxptWocVHWj8f8uEKi2YgQerp9A4ssF1OMmg7v/ZZFwL9xAEovReo1 c1cAOVbPRxo6/uG3YWZSQIIdXdUmaXZHmXaa0ub6T/1ZjiR1HPQxBPE/FUJ6vH8GR7FD X8Nnn3ziqF/bd2kxpTreelZOI7kWw/DHdWQjsPkz9HvmHQ2RRecy0EyDll9fKvGYffB1 faIw== X-Gm-Message-State: ABuFfohd/g9V6IxjEenfcs4FjjXXsCdoEG7Qr+LyjQ9JFLUYV51GucRZ o+NrPGV9G0nl/r/+QDtctYlr2jqSMtqEd728iYbCESX3aDw= X-Google-Smtp-Source: ACcGV62aSxaC+A2syFDh5mam8P4atWmNF0qyk+LL+8nbGR95bQcProEmBTQ7xNf2bM76tYAeNQGSpjbLmffOvjfSQ1g= X-Received: by 2002:a1c:5d8c:: with SMTP id r134-v6mr18458204wmb.147.1540284092086; Tue, 23 Oct 2018 01:41:32 -0700 (PDT) MIME-Version: 1.0 References: <20180728010646.GK19650@michaelspb> In-Reply-To: From: Naveed Basha Date: Tue, 23 Oct 2018 04:41:19 -0400 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: Re: [FFmpeg-devel] Why does ffmpeg h264 decoder stop decoding when certain type of packets are coming in the input 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Below code change fixes Bug #7340 Not sure if that would impact something else. Request your kind opinion on this. On Tue, Jul 31, 2018 at 7:18 PM Carl Eugen Hoyos wrote: > 2018-07-28 14:57 GMT+02:00, Naveed Basha : > > Yes, please find the test stream here. I was using ffmpeg v3.4.2. > > > > https://drive.google.com/open?id=1rHCfG4csA3rB4LSgErEBn1F3WfI5nUVr > > This is now ticket #7340, thank you for the sample. > > Carl Eugen > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 7b4c5c7..4656d22 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -473,7 +473,7 @@ static void idr(H264Context *h) ff_h264_remove_all_refs(h); h->poc.prev_frame_num = h->poc.prev_frame_num_offset = 0; - h->poc.prev_poc_msb = 1<<16; + //h->poc.prev_poc_msb = 1<<16; h->poc.prev_poc_lsb = 0; for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++) h->last_pocs[i] = INT_MIN;