ffmpeg: preserve avg_frame_rate on stream copy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
439e1d196b
commit
0e55902324
1
ffmpeg.c
1
ffmpeg.c
@ -2162,6 +2162,7 @@ static int transcode_init(OutputFile *output_files, int nb_output_files,
|
|||||||
ist->st->codec->sample_aspect_ratio.num ?
|
ist->st->codec->sample_aspect_ratio.num ?
|
||||||
ist->st->codec->sample_aspect_ratio : (AVRational){0, 1};
|
ist->st->codec->sample_aspect_ratio : (AVRational){0, 1};
|
||||||
}
|
}
|
||||||
|
ost->st->avg_frame_rate = ist->st->avg_frame_rate;
|
||||||
break;
|
break;
|
||||||
case AVMEDIA_TYPE_SUBTITLE:
|
case AVMEDIA_TYPE_SUBTITLE:
|
||||||
codec->width = icodec->width;
|
codec->width = icodec->width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user