matroskaenc: Write codec time base as default duration for video tracks.
This isn't exactly semantically equivalent, but the field has already been long abused to mean this, and writing it helps in determining a decent cfr time base when transcoding from a mkv where the video codec stores none (VP8). Originally committed as revision 23284 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -566,6 +566,7 @@ static int mkv_write_tracks(AVFormatContext *s)
|
||||
switch (codec->codec_type) {
|
||||
case AVMEDIA_TYPE_VIDEO:
|
||||
put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_VIDEO);
|
||||
put_ebml_uint(pb, MATROSKA_ID_TRACKDEFAULTDURATION, av_q2d(codec->time_base)*1E9);
|
||||
|
||||
if (!native_id &&
|
||||
ff_codec_get_tag(codec_movvideo_tags, codec->codec_id) &&
|
||||
|
||||
Reference in New Issue
Block a user