On 9/13/2021 10:53 AM, Andreas Rheinhardt wrote:
Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>
---
Could also be removed now.

  fftools/cmdutils.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index ac172dbd65..6a61f7a5e4 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -1399,8 +1399,10 @@ static void print_codec(const AVCodec *c)
          printf("horizband ");
      if (c->capabilities & AV_CODEC_CAP_DR1)
          printf("dr1 ");
+#if LIBAVCODEC_VERSION_MAJOR < 60

If for whatever reason the capability deprecation is postponed, this check will no longer be valid.

Since FF_API_* defines should not be used outside their libraries, i think it'd be better to just remove this now like you suggested above.

      if (c->capabilities & AV_CODEC_CAP_TRUNCATED)
          printf("trunc ");
+#endif
      if (c->capabilities & AV_CODEC_CAP_DELAY)
          printf("delay ");
      if (c->capabilities & AV_CODEC_CAP_SMALL_LAST_FRAME)


_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to