X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fformattools.C;h=2bf178ab8927d3b670e61defb7a502df38dade41;hb=83cdf330ba14342487a08d72e25ef29736d41100;hp=9199fff077e01c185665c8c23b9aa4d35709a0a5;hpb=0df48ad2d876409c5beeae2e21933a728ea76c33;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/formattools.C b/cinelerra-5.1/cinelerra/formattools.C index 9199fff0..2bf178ab 100644 --- a/cinelerra-5.1/cinelerra/formattools.C +++ b/cinelerra-5.1/cinelerra/formattools.C @@ -386,8 +386,9 @@ void FormatTools::update_extension() if(need_extension) { char *ptr1 = ptr; - extension_ptr = asset->format != FILE_FFMPEG ? - extensions.get(0) : asset->fformat; +// change "qt" to "mov" since ffmpeg does not know qt + extension_ptr = asset->format != FILE_FFMPEG ? extensions.get(0) : + !strcmp(asset->fformat, "qt") ? "mov" : asset->fformat ; while(*extension_ptr != 0 && *extension_ptr != '/') *ptr1++ = *extension_ptr++; *ptr1 = 0; @@ -770,7 +771,7 @@ int FormatFFMPEG::handle_event() { BC_ListBoxItem *selection = get_selection(0, 0); if( selection ) { - char *text = get_selection(0, 0)->get_text(); + const char *text = get_selection(0, 0)->get_text(); format->ffmpeg_type->update(text); format->asset->ff_audio_options[0] = 0; format->asset->ff_video_options[0] = 0;