mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
c67d725589
commit
de96180137
1
ffmpeg.c
1
ffmpeg.c
|
@ -1749,6 +1749,7 @@ static int av_encode(AVFormatContext **output_files,
|
||||||
|
|
||||||
ost->st->disposition = ist->st->disposition;
|
ost->st->disposition = ist->st->disposition;
|
||||||
codec->bits_per_raw_sample= icodec->bits_per_raw_sample;
|
codec->bits_per_raw_sample= icodec->bits_per_raw_sample;
|
||||||
|
codec->chroma_sample_location = icodec->chroma_sample_location;
|
||||||
|
|
||||||
if (ost->st->stream_copy) {
|
if (ost->st->stream_copy) {
|
||||||
/* if stream_copy is selected, no need to decode or encode */
|
/* if stream_copy is selected, no need to decode or encode */
|
||||||
|
|
Loading…
Reference in New Issue