Skip to content

Commit 86cc600

Browse files
committed
fix severe bug with codec being None
1 parent 330cbe1 commit 86cc600

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)