summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-08 14:42:11 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-08 14:42:11 +0000
commitc957c8542676d092af1a812860c0b379738b7f01 (patch)
tree5031eace7c94d5b88298f9e4cc61984f4f14d4ee /ffmpeg.c
parent792e467904d161780c7a62c71aa2dd30b377d54d (diff)
Replace all uses of the replaced av_fifo_read by av_fifo_generic_read
Originally committed as revision 17873 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 72156e2253..8a5e0e4ed1 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -672,7 +672,7 @@ static void do_audio_out(AVFormatContext *s,
AVPacket pkt;
av_init_packet(&pkt);
- av_fifo_read(ost->fifo, audio_buf, frame_bytes);
+ av_fifo_generic_read(ost->fifo, frame_bytes, NULL, audio_buf);
//FIXME pass ost->sync_opts as AVFrame.pts in avcodec_encode_audio()
@@ -1452,7 +1452,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
if(fifo_bytes > 0 && enc->codec->capabilities & CODEC_CAP_SMALL_LAST_FRAME) {
int fs_tmp = enc->frame_size;
enc->frame_size = fifo_bytes / (2 * enc->channels);
- av_fifo_read(ost->fifo, (uint8_t *)samples, fifo_bytes);
+ av_fifo_generic_read(ost->fifo, fifo_bytes, NULL, samples);
ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, samples);
enc->frame_size = fs_tmp;
}