[FFmpeg-devel] [PATCH 2/2] update codec-par to add crop fields

Steven Xiao steven.xiao at amd.com
Thu Sep 1 20:17:11 EEST 2022


---
 ffmpeg/libavcodec/codec_par.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ffmpeg/libavcodec/codec_par.h b/ffmpeg/libavcodec/codec_par.h
index 7660791..6671f18 100644
--- a/ffmpeg/libavcodec/codec_par.h
+++ b/ffmpeg/libavcodec/codec_par.h
@@ -127,6 +127,14 @@ typedef struct AVCodecParameters {
     int width;
     int height;
 
+    /**
+     * The dimensions of the crop, usually from container.
+     */
+    int crop_top;
+    int crop_left;
+    int crop_bottom;
+    int crop_right;
+
     /**
      * Video only. The aspect ratio (width / height) which a single pixel
      * should have when displayed.
-- 
2.35.1.windows.2



More information about the ffmpeg-devel mailing list