Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: [FFmpeg-devel] [PATCH 7/7] avcodec/test/avcodec: check decoders for FF_CODEC_CAP_SETS_PKT_DTS
Date: Sun,  9 Jul 2023 16:21:10 -0300
Message-ID: <20230709192110.5934-7-jamrial@gmail.com> (raw)
In-Reply-To: <20230709192110.5934-1-jamrial@gmail.com>

Ensure that only decode() callback ones set it.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/tests/avcodec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c
index bbf5289af2..08ca507bf0 100644
--- a/libavcodec/tests/avcodec.c
+++ b/libavcodec/tests/avcodec.c
@@ -175,6 +175,10 @@ int main(void){
                 !(codec->capabilities & AV_CODEC_CAP_FRAME_THREADS))
                 ERR("Decoder %s wants allocated progress without supporting"
                     "frame threads\n");
+            if (codec2->cb_type != FF_CODEC_CB_TYPE_DECODE &&
+                codec2->caps_internal & FF_CODEC_CAP_SETS_PKT_DTS)
+                ERR("Decoder %s is marked as setting pkt_dts when it doesn't have"
+                    "any effect\n");
         }
         if (priv_data_size_wrong(codec2))
             ERR_EXT("Private context of codec %s is impossibly-sized (size %d).",
-- 
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".

  parent reply	other threads:[~2023-07-09 19:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-09 19:21 [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 2/7] avcodec/libdav1d: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 3/7] avcodec/mediacodecdec: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 4/7] avcodec/mjpegdec: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 5/7] avcodec/mmaldec: " James Almer
2023-07-09 19:21 ` [FFmpeg-devel] [PATCH 6/7] avcodec/v4l2_m2m_dec: " James Almer
2023-07-09 19:21 ` James Almer [this message]
2023-07-11 16:04 ` [FFmpeg-devel] [PATCH 1/7] avcodec/av1dec: " James Almer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230709192110.5934-7-jamrial@gmail.com \
    --to=jamrial@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git