X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fastenc.c;h=cf75b48b21dbdfb7732de53fe5f647645eaab7dd;hb=bd96c54fe4819b3ca9a975e2083d67f4443c559b;hp=578e658891e3aff195ac9936924f77e4dd15b544;hpb=e645d7a6d452df83cedcbb1d6708429ceea156da;p=ffmpeg diff --git a/libavformat/astenc.c b/libavformat/astenc.c index 578e658891e..cf75b48b21d 100644 --- a/libavformat/astenc.c +++ b/libavformat/astenc.c @@ -101,8 +101,6 @@ static int ast_write_header(AVFormatContext *s) avio_wb64(pb, 0); avio_wb32(pb, 0); - avio_flush(pb); - return 0; } @@ -180,7 +178,6 @@ static int ast_write_trailer(AVFormatContext *s) } avio_seek(pb, file_size, SEEK_SET); - avio_flush(pb); } return 0; } @@ -199,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", @@ -210,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, };