From: Aman Gupta <[email protected]>
---
fftools/ffmpeg.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index babd85f7bc..159b8e0016 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1265,6 +1265,10 @@ static void do_video_out(OutputFile *of,
enc->time_base.num, enc->time_base.den);
}
+ // apply any frame cropping added by filters
+ av_frame_apply_cropping(in_picture, ist->dec_ctx->flags &
AV_CODEC_FLAG_UNALIGNED ?
+ AV_FRAME_CROP_UNALIGNED : 0);
+
ost->frames_encoded++;
ret = avcodec_send_frame(enc, in_picture);
--
2.14.2
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel