[x264-devel] [Git][videolan/x264][master] lavf: Update the code to work with the latest libavutil API

Martin Storsjö (@mstorsjo) gitlab at videolan.org
Fri Apr 4 17:25:32 UTC 2025



Martin Storsjö pushed to branch master at VideoLAN / x264


Commits:
32c3b801 by Martin Storsjö at 2025-04-04T17:50:00+03:00
lavf: Update the code to work with the latest libavutil API

- - - - -


1 changed file:

- input/lavf.c


Changes:

=====================================
input/lavf.c
=====================================
@@ -33,6 +33,7 @@
 #include <libavutil/error.h>
 #include <libavutil/mem.h>
 #include <libavutil/pixdesc.h>
+#include <libavutil/version.h>
 
 #define FAIL_IF_ERROR( cond, ... ) FAIL_IF_ERR( cond, "lavf", __VA_ARGS__ )
 
@@ -141,8 +142,13 @@ static int read_frame_internal( cli_pic_t *p_pic, lavf_hnd_t *h, int i_frame, vi
     if( info )
     {
         info->fullrange  = is_fullrange;
+#if LIBAVUTIL_VERSION_MAJOR < 60
         info->interlaced = h->frame->interlaced_frame;
         info->tff        = h->frame->top_field_first;
+#else
+        info->interlaced = !!(h->frame->flags & AV_FRAME_FLAG_INTERLACED);
+        info->tff        = !!(h->frame->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST);
+#endif
     }
 
     if( h->vfr_input )



View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/32c3b801191522961102d4bea292cdb61068d0dd

-- 
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/32c3b801191522961102d4bea292cdb61068d0dd
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the x264-devel mailing list