diff options
author | James Almer <jamrial@gmail.com> | 2017-05-08 13:08:02 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-05-08 13:08:02 -0300 |
commit | a47bd5d77e3f1dd8bb3d4ba0955bd7b1323c7d83 (patch) | |
tree | c59282acb59cac554c2cad5b5a42ceb8fd2a0007 /libavutil/frame.c | |
parent | 8ef2c791c99e7c103782e889e2bca2f6e13a07be (diff) | |
parent | 52627248e49e58eb4b78e4fcda90a64f4c476ea3 (diff) | |
download | ffmpeg-a47bd5d77e3f1dd8bb3d4ba0955bd7b1323c7d83.tar.gz |
Merge commit '52627248e49e58eb4b78e4fcda90a64f4c476ea3'
* commit '52627248e49e58eb4b78e4fcda90a64f4c476ea3':
frame: add a cropping rectangle to AVFrame
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index dd12c5549c..24d5d5f184 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -297,6 +297,10 @@ static int frame_copy_props(AVFrame *dst, const AVFrame *src, int force_copy) dst->key_frame = src->key_frame; dst->pict_type = src->pict_type; dst->sample_aspect_ratio = src->sample_aspect_ratio; + dst->crop_top = src->crop_top; + dst->crop_bottom = src->crop_bottom; + dst->crop_left = src->crop_left; + dst->crop_right = src->crop_right; dst->pts = src->pts; dst->repeat_pict = src->repeat_pict; dst->interlaced_frame = src->interlaced_frame; |