Permalink
Browse files

Calculate h.264 aspect ratio using cropped dimensions.

Otherwise the aspect ratio may change from 1920/1080 to 1920/1088 and
lead to anomalous rescaling.
  • Loading branch information...
stichnot authored and jyavenard committed Mar 6, 2013
1 parent d59a3fd commit e55bdaf15ace9c394786f0dae3c8a60fd5d5ddb1
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/mpeg/H264Parser.cpp
@@ -1252,7 +1252,7 @@ uint H264Parser::aspectRatio(void) const
double aspect = 0.0;
if (pic_height)
aspect = pic_width / (double)pic_height;
aspect = pictureWidthCropped() / (double)pictureHeightCropped();
switch (aspect_ratio_idc)
{

0 comments on commit e55bdaf

Please sign in to comment.