/* ISO file spec says track header w/h indicates track's visual presentation
* (so this together with pixels w/h implicitly defines PAR) */
if (par_n && (context->flavor != ATOMS_TREE_FLAVOR_MOV)) {
- /* Assumes square pixels display */
- if (!gst_video_calculate_display_ratio (&dwidth, &dheight, entry->width,
- entry->height, par_n, par_d, 1, 1)) {
- GST_WARNING ("Could not calculate display ratio");
- }
+ dwidth = entry->width * par_n / par_d;
+ dheight = entry->height;
}
atom_trak_set_video_commons (trak, context, scale, dwidth, dheight);