Skip to content

Commit

Permalink
Fixed error when output to MPEG-1 format with audio (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice0 committed Nov 12, 2020
1 parent 23bf66a commit 03ab84d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp
Expand Up @@ -289,7 +289,8 @@ ffmpeg_trgt::init(ProgressCallback *cb=NULL)
vargs.push_back("0");
}
vargs.push_back("-acodec");
vargs.push_back("pcm_s16le");
// MPEG-1 cannot work with 'le' audio, it requires 'be'
vargs.push_back(video_codec == "mpeg1video" ? "pcm_s16be" : "pcm_s16le");
vargs.push_back("-y");
vargs.push_back("-shortest");
// We need "--" to separate filename from arguments (for the case when filename starts with "-")
Expand Down

0 comments on commit 03ab84d

Please sign in to comment.