X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffilempeg.C;h=fb4ee731d05c868f41d25fd307b60b9aecdf0109;hb=01c087cf8b098c6cd424cb2cb3778f3b1317fa21;hp=bd8da56ba95d07fef27bc697995b505357571d8b;hpb=9b18af02dc4ccbf052ef9d70180a3d16c0f9848b;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/filempeg.C b/cinelerra-5.1/cinelerra/filempeg.C index bd8da56b..fb4ee731 100644 --- a/cinelerra-5.1/cinelerra/filempeg.C +++ b/cinelerra-5.1/cinelerra/filempeg.C @@ -501,10 +501,6 @@ int FileMPEG::open_file(int rd, int wr) { append_vcommand_line("-a"); // Square pixels - if(EQUIV((double)asset->width / asset->height, - asset->aspect_ratio)) - append_vcommand_line("1"); - else if(EQUIV(asset->aspect_ratio, 1.333)) append_vcommand_line("2"); else @@ -513,6 +509,10 @@ int FileMPEG::open_file(int rd, int wr) else if(EQUIV(asset->aspect_ratio, 2.11)) append_vcommand_line("4"); + else + if(EQUIV((double)asset->width / asset->height, + asset->aspect_ratio)) + append_vcommand_line("1"); } append_vcommand_line(asset->vmpeg_derivative == 1 ? "-1" : "");