OSDN Git Service

lavfi: Move new field to the end of AVFilterLink
authorTimo Rothenpieler <timo@rothenpieler.org>
Wed, 29 Jun 2016 09:38:14 +0000 (11:38 +0200)
committerTimo Rothenpieler <timo@rothenpieler.org>
Wed, 29 Jun 2016 10:53:07 +0000 (12:53 +0200)
Even though this is not part of the public API, some external
applications access fields after it, thus breaking after updating from
ffmpeg 3.0 or earlier.
Since it is not public, it can be freely moved to the end to avoid
that problem in the future.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avfilter.h

index 79227a7..8a7f791 100644 (file)
@@ -474,12 +474,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.
      */
     AVFrame *partial_buf;
@@ -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;
 };
 
 /**