diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 79227a7ea0a77a79ad7e46050dcf988bdb106a91..8a7f7916db9d2d3b0136b760574dcb3cc4b42ca7 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -473,12 +473,6 @@ struct AVFilterLink {
      */
     AVRational frame_rate;
 
-    /**
-     * For hwaccel pixel formats, this should be a reference to the
-     * AVHWFramesContext describing the frames.
-     */
-    AVBufferRef *hw_frames_ctx;
-
     /**
      * Buffer partially filled with samples to achieve a fixed/minimum size.
      */
@@ -550,6 +544,12 @@ struct AVFilterLink {
      * cleared when a frame is filtered.
      */
     int frame_wanted_out;
+
+    /**
+     * For hwaccel pixel formats, this should be a reference to the
+     * AVHWFramesContext describing the frames.
+     */
+    AVBufferRef *hw_frames_ctx;
 };
 
 /**