avutil/common: error out with clear message if __STDC_CONSTANT_MACROS is not defined...
[ffmpeg.git] / libavformat / mkvtimestamp_v2.c
index b04c655..7ba6691 100644 (file)
@@ -37,15 +37,14 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
         av_log(s, AV_LOG_WARNING, "More than one stream unsupported\n");
     snprintf(buf, sizeof(buf), "%" PRId64 "\n", pkt->dts);
     avio_write(s->pb, buf, strlen(buf));
-    avio_flush(s->pb);
     return 0;
 }
 
 AVOutputFormat ff_mkvtimestamp_v2_muxer = {
     .name         = "mkvtimestamp_v2",
     .long_name    = NULL_IF_CONFIG_SMALL("extract pts as timecode v2 format, as defined by mkvtoolnix"),
-    .audio_codec  = CODEC_ID_NONE,
-    .video_codec  = CODEC_ID_RAWVIDEO,
+    .audio_codec  = AV_CODEC_ID_NONE,
+    .video_codec  = AV_CODEC_ID_RAWVIDEO,
     .write_header = write_header,
     .write_packet = write_packet,
 };