# HG changeset patch # User aurel # Date 1279136174 0 # Node ID 7b2f50760dfba4ba362dfa7558581f5806a2da35 # Parent 2d397bb856a45c0af37f478104074a08eb039da8 matroskaenc: write DisplayUnit element to better match the spec This makes it clear that we are specifying the aspect ratio, and not the intended display size in pixels. diff -r 2d397bb856a4 -r 7b2f50760dfb matroskaenc.c --- a/matroskaenc.c Wed Jul 14 17:28:40 2010 +0000 +++ b/matroskaenc.c Wed Jul 14 19:36:14 2010 +0000 @@ -603,6 +603,7 @@ int d_width = codec->width*av_q2d(st->sample_aspect_ratio); put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYWIDTH , d_width); put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYHEIGHT, codec->height); + put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYUNIT, 3); } end_ebml_master(pb, subinfo); break;