summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-02-01 16:19:23 +0000
committerjstebbins <[email protected]>2015-02-01 16:19:23 +0000
commit7d6e17b7089c82aafee0f4013943a9f40866465b (patch)
treec3605cba4cd8dd1cee19ee0ac4e29745b87702ea
parentc8d9395c370d727a9a73a31c70cde5459258c3e8 (diff)
muxavformat: fix defaultduration in mkv files
libav 11 now requires avg_frame_rate be set for video streams git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6858 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/muxavformat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index 26d559ef5..7e168a59a 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -393,6 +393,8 @@ static int avformatInit( hb_mux_object_t * m )
track->st->codec->time_base.num = vrate.den;
track->st->codec->time_base.den = vrate.num;
}
+ track->st->avg_frame_rate.num = vrate.num;
+ track->st->avg_frame_rate.den = vrate.den;
/* add the audio tracks */
for(ii = 0; ii < hb_list_count( job->list_audio ); ii++ )