From: conrad Date: Tue, 12 May 2009 00:47:19 +0000 (+0000) Subject: Copy input codec's chroma_sample_location to output codec when transcoding. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/2f1870d6b202c6aa4f0373eeac202de1496ff4c7 Copy input codec's chroma_sample_location to output codec when transcoding. Currently only used by yuv4mpeg. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18799 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/ffmpeg.c b/ffmpeg.c index ef7b17d34..5f407c96c 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1749,6 +1749,7 @@ static int av_encode(AVFormatContext **output_files, ost->st->disposition = ist->st->disposition; codec->bits_per_raw_sample= icodec->bits_per_raw_sample; + codec->chroma_sample_location = icodec->chroma_sample_location; if (ost->st->stream_copy) { /* if stream_copy is selected, no need to decode or encode */