X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsmjpegenc.c;h=ac5576fa7604555ce53401538a915509ff025c4a;hb=bd96c54fe4819b3ca9a975e2083d67f4443c559b;hp=68a128647e374b868491a3d646f4aa3f7ef7ff1b;hpb=8822e2b9543bb02fb2889dff627b6db023053253;p=ffmpeg diff --git a/libavformat/smjpegenc.c b/libavformat/smjpegenc.c index 68a128647e3..ac5576fa760 100644 --- a/libavformat/smjpegenc.c +++ b/libavformat/smjpegenc.c @@ -88,7 +88,6 @@ static int smjpeg_write_header(AVFormatContext *s) } avio_wl32(pb, SMJPEG_HEND); - avio_flush(pb); return 0; } @@ -133,7 +132,7 @@ static int smjpeg_write_trailer(AVFormatContext *s) return 0; } -AVOutputFormat ff_smjpeg_muxer = { +const AVOutputFormat ff_smjpeg_muxer = { .name = "smjpeg", .long_name = NULL_IF_CONFIG_SMALL("Loki SDL MJPEG"), .priv_data_size = sizeof(SMJPEGMuxContext),