X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fastenc.c;h=cf75b48b21dbdfb7732de53fe5f647645eaab7dd;hb=bc70684e74a185d7b80c8b80bdedda659cb581b8;hp=578e658891e3aff195ac9936924f77e4dd15b544;hpb=1b98bfb932ad36667ea7f18e24c54978623f6654;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, };