]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/alsa-audio-enc.c
RELEASE: We're now at 0.9.0.git
[ffmpeg] / libavdevice / alsa-audio-enc.c
index 0da22bb07093f457805c333eb7fe2e9e9735f448..fd013160d6225b10a6537522b65bcb44c570e3b3 100644 (file)
@@ -39,6 +39,7 @@
 
 #include <alsa/asoundlib.h>
 
+#include "libavformat/internal.h"
 #include "avdevice.h"
 #include "alsa-audio.h"
 
@@ -61,7 +62,7 @@ static av_cold int audio_write_header(AVFormatContext *s1)
                st->codec->sample_rate, sample_rate);
         goto fail;
     }
-    av_set_pts_info(st, 64, 1, sample_rate);
+    avpriv_set_pts_info(st, 64, 1, sample_rate);
 
     return res;
 
@@ -114,16 +115,14 @@ audio_get_output_timestamp(AVFormatContext *s1, int stream,
 }
 
 AVOutputFormat ff_alsa_muxer = {
-    "alsa",
-    NULL_IF_CONFIG_SMALL("ALSA audio output"),
-    "",
-    "",
-    sizeof(AlsaData),
-    DEFAULT_CODEC_ID,
-    CODEC_ID_NONE,
-    audio_write_header,
-    audio_write_packet,
-    ff_alsa_close,
+    .name           = "alsa",
+    .long_name      = NULL_IF_CONFIG_SMALL("ALSA audio output"),
+    .priv_data_size = sizeof(AlsaData),
+    .audio_codec    = DEFAULT_CODEC_ID,
+    .video_codec    = CODEC_ID_NONE,
+    .write_header   = audio_write_header,
+    .write_packet   = audio_write_packet,
+    .write_trailer  = ff_alsa_close,
     .get_output_timestamp = audio_get_output_timestamp,
-    .flags = AVFMT_NOFILE,
+    .flags          = AVFMT_NOFILE,
 };