Andrew minor fix for console running of Batch Render + RafaMar Spanish updates
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / fileffmpeg.C
index eed14f2005f6c8044a19c9bf3a0fbf577ffba192..67bd702d4d13d95cae20b91ff23936837bf862dd 100644 (file)
@@ -343,10 +343,11 @@ int FileFFMPEG::open_file(int rd, int wr)
                        if( video_layers > 0 ) {
                                asset->video_data = 1;
                                asset->aspect_ratio = ff->ff_aspect_ratio(0);
-                               printf("ff_aspect_ratio, %f \n", asset->aspect_ratio);
                                if (!asset->interlace_mode) asset->interlace_mode = ff->ff_interlace(0);
+                               if ( ff->ff_video_frames(0) > 1 ) {
                                ff->video_probe(1);
                                 if (!asset->interlace_mode && (ff->interlace_from_codec) ) asset->interlace_mode = ff->video_probe(1); 
+                               }
                                if( !asset->layers ) asset->layers = video_layers;
                                asset->actual_width = ff->ff_video_width(0);
                                asset->actual_height = ff->ff_video_height(0);