GNOME Bugzilla – Bug 736396
isomp4: duplicate if else branches in atoms.c
Last modified: 2018-10-22 11:23:38 UTC
Created attachment 285809 [details] [review] isomp4: duplicate if else branches in atoms.c In gst-plugins-good: isomp4/atom.c found duplicate branches for if else, removed it and added a patch for same, please review.
your patch looks strange as you only remove two empty lines.
Created attachment 285888 [details] [review] isomp4: duplicate if else condition (revised) I think you meant to change the code like this, right?
yes actually i removes those in first place but i thought there was some error in git so its like that i'll resubmit the patch. Thanks for your review
Review of attachment 285888 [details] [review]: The problem is likely not the code been repeated but the calculation being wrong on the else branch
Created attachment 285936 [details] [review] Fix wrong DAR computation for PAR <= 1 Of the top of my head, not sure it's correct. Please review
Additionally, Using gst_video_calculate_display_ratio() might be the best option anyway.
Created attachment 286326 [details] [review] Fix wrong DAR computation for PAR <= 1 Alternative using _calculate_display_ratio()
Review of attachment 286326 [details] [review]: Looks good.
commit e655d47dfce1652630fe8ff5fb6be56370087004 Author: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Date: Thu Sep 11 13:48:44 2014 -0300 isomp4: fix wrong DAR calculation for PAR <= 1 CID #1226452 https://bugzilla.gnome.org/show_bug.cgi?id=736396
This is wrong: it puts a width/height of the display aspect ratio in there, e.g. width 4 and height 3. The original code was correct, it was just duplicating the calculation for both cases for whatever reason but the calculating was correct for both cases.