]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/omaenc.c
Replace any remaining avpicture function with imgutils
[ffmpeg] / libavformat / omaenc.c
index e932b4bbc15642e1e6461f91fbbe1ae37b983d2a..bfd552a03d3e8dfecd0867116b784a072713098b 100644 (file)
@@ -49,7 +49,7 @@ static av_cold int oma_write_header(AVFormatContext *s)
     }
 
     /* Metadata; OpenMG does not support ID3v2.4 */
-    ff_id3v2_write(s, 3, ID3v2_EA3_MAGIC);
+    ff_id3v2_write_simple(s, 3, ID3v2_EA3_MAGIC);
 
     ffio_wfourcc(s->pb, "EA3\0");
     avio_w8(s->pb, EA3_HEADER_SIZE >> 7);
@@ -98,8 +98,9 @@ AVOutputFormat ff_oma_muxer = {
     .long_name         = NULL_IF_CONFIG_SMALL("Sony OpenMG audio"),
     .mime_type         = "audio/x-oma",
     .extensions        = "oma",
-    .audio_codec       = CODEC_ID_ATRAC3,
+    .audio_codec       = AV_CODEC_ID_ATRAC3,
     .write_header      = oma_write_header,
     .write_packet      = ff_raw_write_packet,
     .codec_tag         = (const AVCodecTag* const []){ff_oma_codec_tags, 0},
+    .flags             = AVFMT_NOTIMESTAMPS,
 };