Skip to content

Commit 6c3d4ac

Browse files
committed
Merge pull request #125 from aestrivex/allow_no_codec_ffmpeg_compat
fix severe bug with codec being None
2 parents 330cbe1 + 86cc600 commit 6c3d4ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surfer/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def ffmpeg(dst, frame_path, framerate=24, codec='mpeg4'):
697697

698698
# make the movie
699699
cmd = ['ffmpeg', '-i', frame_fmt, '-r', str(framerate)]
700-
if codec is None:
700+
if codec is not None:
701701
cmd += ['-c', codec]
702702
cmd += [dst]
703703
logger.info("Running FFmpeg with command: %s", ' '.join(cmd))

0 commit comments

Comments
 (0)