summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2009-05-12 00:47:19 +0000
committerDavid Conrad <lessen42@gmail.com>2009-05-12 00:47:19 +0000
commitde9618013711ebc4d562c8fe4c53f51a90b2afe0 (patch)
treec502c454747ea903b2356bad46f50f8129a6e535
parentc67d725589596bf7a872525727d93bd24311a5eb (diff)
Copy input codec's chroma_sample_location to output codec when transcoding.
Currently only used by yuv4mpeg. Originally committed as revision 18799 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index ef7b17d34c..5f407c96cc 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 */