]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/astenc.c
avformat: Constify all muxer/demuxers
[ffmpeg] / libavformat / astenc.c
index d38a3aab38b6e0f8f52ea0b790141942a5405d50..cf75b48b21dbdfb7732de53fe5f647645eaab7dd 100644 (file)
@@ -178,7 +178,6 @@ static int ast_write_trailer(AVFormatContext *s)
         }
 
         avio_seek(pb, file_size, SEEK_SET);
-        avio_flush(pb);
     }
     return 0;
 }
@@ -197,7 +196,7 @@ static const AVClass ast_muxer_class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
-AVOutputFormat ff_ast_muxer = {
+const AVOutputFormat ff_ast_muxer = {
     .name              = "ast",
     .long_name         = NULL_IF_CONFIG_SMALL("AST (Audio Stream)"),
     .extensions        = "ast",
@@ -208,5 +207,5 @@ AVOutputFormat ff_ast_muxer = {
     .write_packet      = ast_write_packet,
     .write_trailer     = ast_write_trailer,
     .priv_class        = &ast_muxer_class,
-    .codec_tag         = (const AVCodecTag* const []){ff_codec_ast_tags, 0},
+    .codec_tag         = ff_ast_codec_tags_list,
 };