/*
* BeOS audio play interface
- * Copyright (c) 2000, 2001 Fabrice Bellard.
+ * Copyright (c) 2000, 2001 Fabrice Bellard
*
* This file is part of FFmpeg.
*
return 0;
}
-static int audio_write_packet(AVFormatContext *s1, int stream_index,
- const uint8_t *buf, int size, int64_t force_pts)
+static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
{
AudioData *s = (AudioData *)s1->priv_data;
int len, ret;
+ const uint8_t *buf = pkt->data;
+ int size = pkt->size;
#ifdef LATENCY_CHECK
bigtime_t lat1, lat2;
lat1 = s->player->Latency();
st->codec->sample_rate = s->sample_rate;
st->codec->channels = s->channels;
return 0;
- av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in us */
+ av_set_pts_info(st, 48, 1, 1000000); /* 48 bits pts in us */
}
static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
audio_read_packet,
audio_read_close,
NULL,
+ NULL,
AVFMT_NOFILE,
};
"",
"",
sizeof(AudioData),
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
CODEC_ID_PCM_S16BE,
#else
CODEC_ID_PCM_S16LE,