Copy input codec's chroma_sample_location to output codec when transcoding.
authorDavid Conrad <lessen42@gmail.com>
Tue, 12 May 2009 00:47:19 +0000 (00:47 +0000)
committerDavid Conrad <lessen42@gmail.com>
Tue, 12 May 2009 00:47:19 +0000 (00:47 +0000)
Currently only used by yuv4mpeg.

Originally committed as revision 18799 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index ef7b17d34c99071a48d5c3d62ce70fd6470f0cc6..5f407c96cccf52473694360fd0040c8ded61a2c9 100644 (file)
--- 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 */