replace av_log(0, by av_log(NULL,
[ffmpeg.git] / libavformat / idroqenc.c
index 9935b61..50c4280 100644 (file)
@@ -30,20 +30,17 @@ static int roq_write_header(struct AVFormatContext *s)
     };
 
     avio_write(s->pb, header, 8);
-    put_flush_packet(s->pb);
+    avio_flush(s->pb);
 
     return 0;
 }
 
-AVOutputFormat ff_roq_muxer =
-{
-    "RoQ",
-    NULL_IF_CONFIG_SMALL("raw id RoQ format"),
-    NULL,
-    "roq",
-    0,
-    CODEC_ID_ROQ_DPCM,
-    CODEC_ID_ROQ,
-    roq_write_header,
-    ff_raw_write_packet,
+AVOutputFormat ff_roq_muxer = {
+    .name         = "roq",
+    .long_name    = NULL_IF_CONFIG_SMALL("raw id RoQ"),
+    .extensions   = "roq",
+    .audio_codec  = AV_CODEC_ID_ROQ_DPCM,
+    .video_codec  = AV_CODEC_ID_ROQ,
+    .write_header = roq_write_header,
+    .write_packet = ff_raw_write_packet,
 };