Check a return value for error.
authorCarl Hetherington <cth@carlh.net>
Thu, 24 Aug 2023 13:44:11 +0000 (15:44 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 26 Aug 2023 08:23:21 +0000 (10:23 +0200)
src/lib/ffmpeg_file_encoder.cc

index 30dcdb94cc299b0031583eee5218a6de9c23a84a..32a0e0f8620f3741ab09bd6c7456305541692130 100644 (file)
@@ -394,7 +394,8 @@ FFmpegFileEncoder::flush ()
                }
        }
 
-       av_write_trailer (_format_context);
+       auto const r = av_write_trailer(_format_context);
+       DCPOMATIC_ASSERT(r == 0);
 }