libmpeg2: Fix aspect ratio calculation according to MPEG standard.
authorMarian Ďurkovič <md@bts.sk>
Tue, 20 Oct 2009 08:11:24 +0000 (10:11 +0200)
committerMarian Ďurkovič <md@bts.sk>
Tue, 20 Oct 2009 08:11:24 +0000 (10:11 +0200)
commitd3cb36d54f49c35a6f507b5aa5db2603e2373ab9
treee0f197bc54760749bf4798a649d94ec1e23eb504
parent5f8c04120ac65de57399b8d723a8e1b5f1a09865
libmpeg2: Fix aspect ratio calculation according to MPEG standard.

The library delivers us pixel width/height relative to display size
so we must compute it accordingly, otherwise we have conflicting data
in i_sar_num/i_sar_den and i_aspect.
modules/codec/libmpeg2.c