[SCM] libav/experimental: Copy input codec's chroma_sample_location to output codec when transcoding. Currently only used by yuv4mpeg.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:45:37 UTC 2013


The following commit has been merged in the experimental branch:
commit de9618013711ebc4d562c8fe4c53f51a90b2afe0
Author: David Conrad <lessen42 at gmail.com>
Date:   Tue May 12 00:47:19 2009 +0000

    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

diff --git a/ffmpeg.c b/ffmpeg.c
index ef7b17d..5f407c9 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 */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list