commit 4783ee8970e333981ed15f40fdefc16ea074268f Author: Stéphane Bidoul Date: Mon Oct 18 08:20:47 2010 +0200 Correct mkv aspect ratio diff --git a/tvheadend/src/dvr/mkmux.c b/tvheadend/src/dvr/mkmux.c index d9930d2..4a9fcc0 100644 --- a/tvheadend/src/dvr/mkmux.c +++ b/tvheadend/src/dvr/mkmux.c @@ -270,8 +270,10 @@ mk_build_tracks(mk_mux_t *mkm, const struct streaming_start *ss) if(ssc->ssc_aspect_num && ssc->ssc_aspect_den) { ebml_append_uint(vi, 0x54b2, 3); // Display width/height is in DAR - ebml_append_uint(vi, 0x54b0, ssc->ssc_aspect_num); - ebml_append_uint(vi, 0x54ba, ssc->ssc_aspect_den); + ebml_append_uint(vi, 0x54b0, + ssc->ssc_width*ssc->ssc_aspect_num/ssc->ssc_aspect_den); + ebml_append_uint(vi, 0x54ba, + ssc->ssc_height); }