From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D081745E5E for ; Fri, 14 Jul 2023 12:31:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DC49968A8C0; Fri, 14 Jul 2023 15:31:48 +0300 (EEST) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9853968C317 for ; Fri, 14 Jul 2023 15:31:42 +0300 (EEST) Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-6b73741a632so1422025a34.3 for ; Fri, 14 Jul 2023 05:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689337900; x=1691929900; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=pHRM/jKJH0iAPTv2/SyZoDQurRFec0VE6MPKIYlvcJE=; b=WQY6j4qJ3myaDU8um5P7YsQuGdqUg99/TgQsSAbgEgTdDePGq/zt1V8qyxh5f0wUFU Xf6+9GmIIIc3paRIgzA0C6/Lg1cdzhmrJuY0Zkzb5PRThIFAngeL2MQxo6fph7ccQeTU pVXMV6LlM+MB0OB7iJmAUGD3i74lGvYFtDDg4X/iZlAIZ4wq65+uY9OGiIgriKB36Rbv WmqXtR3uKK4b0L8oU2KDgZYW9urjlI8FGdJ2wwbnHPdCq5/8KJJ4jbbrrQypzIBgaOHX qneJL8yk6l1jNMa/IqayBqDL9PNwSL43J5Na+G6l68BrlLnG6OH/ePgDX4+xvHy6CuFD ga2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689337900; x=1691929900; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pHRM/jKJH0iAPTv2/SyZoDQurRFec0VE6MPKIYlvcJE=; b=Ekrdvg71Uw0IDTou1Hgb/7jDIATgSfc7LLn+UjNsCiZvwufMkCEDktjwVbTLo4rraI 6mCP84JN/U3SW4ITV20RUvC4TAhbAQUM3Yx0/+1WjtPcgNaTa7LgZa11btEuEXP/E8Kw KWpm/Zzf3LqoZW6hWPaRAEouxIoNZ7TqmAO4v7Tf0ZdSntssxElG71Bg0CSGB1/wHct6 ODl7Rrz4IY/JW2M43TqtsJ1sBsZA0AEsuJrXOxfE6a9YodTm9W2TE/dtwEqPgfeMrOee +fZG5WNuG/3xFXLgSnLbWlsgtSsAost/T80G9rPqxzTwjZO2LRS/bW3/e0CqOtN+vQE+ ahdQ== X-Gm-Message-State: ABy/qLbGolz2sbnPsDS4Xq3uInKDSEiY1o5YC3eu5tGaHiAykm24b5CI be3Bq+kcp7bcwZIU6rOd42GGSyudtkU= X-Google-Smtp-Source: APBJJlFQwJfiRU4hybWzshfuRLXMBKVPOc6f+ndt/SwO77uSiFuDS1UL8mvQ8bfsntJgbkZH1BWQbA== X-Received: by 2002:a05:6830:1e9a:b0:6b9:53ff:7513 with SMTP id n26-20020a0568301e9a00b006b953ff7513mr4494383otr.34.1689337900409; Fri, 14 Jul 2023 05:31:40 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id v25-20020a9d69d9000000b006b96680b813sm3775786oto.81.2023.07.14.05.31.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 05:31:39 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Fri, 14 Jul 2023 09:31:32 -0300 Message-ID: <20230714123132.55249-1-jamrial@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/mpegvideo_dec: properly set output frames as keyframes X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Should fix ticket #10426. Signed-off-by: James Almer --- libavcodec/mpegvideo_dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c index fcca147cd6..670b0912e2 100644 --- a/libavcodec/mpegvideo_dec.c +++ b/libavcodec/mpegvideo_dec.c @@ -344,9 +344,9 @@ FF_ENABLE_DEPRECATION_WARNINGS s->current_picture_ptr->f->pict_type = s->pict_type; if (s->pict_type == AV_PICTURE_TYPE_I) - s->current_picture.f->flags |= AV_FRAME_FLAG_KEY; + s->current_picture_ptr->f->flags |= AV_FRAME_FLAG_KEY; else - s->current_picture.f->flags &= ~AV_FRAME_FLAG_KEY; + s->current_picture_ptr->f->flags &= ~AV_FRAME_FLAG_KEY; if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture, s->current_picture_ptr)) < 0) -- 2.41.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".