[FFmpeg-cvslog] ffmpeg: do not copy chroma_sample_location from the input stream

Anton Khirnov git at videolan.org
Tue Nov 23 12:41:04 EET 2021


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Nov 12 18:24:07 2021 +0100| [e8380bbae6e3dfad9eaabf6ab0ba793221fd21f4] | committer: Anton Khirnov

ffmpeg: do not copy chroma_sample_location from the input stream

It will be set from the supplied AVFrame later on.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e8380bbae6e3dfad9eaabf6ab0ba793221fd21f4
---

 fftools/ffmpeg.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index c9a9cdfcd6..5325353bc9 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -3332,8 +3332,6 @@ static int init_output_stream_encode(OutputStream *ost, AVFrame *frame)
 
     if (ist) {
         dec_ctx = ist->dec_ctx;
-
-        enc_ctx->chroma_sample_location = dec_ctx->chroma_sample_location;
     }
 
     if (enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO) {



More information about the ffmpeg-cvslog mailing list