diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-28 22:00:45 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-28 22:00:45 +0000 |
commit | 57783b07a0000aaa7509eafa72664cec54750b71 (patch) | |
tree | 6ba1be8b395831fd7f71f2681faaa7be3e4f805b /libavformat/dvenc.c | |
parent | 659094cb6b1207810d70049f4abaa4b4b8ff4cc0 (diff) | |
download | ffmpeg-57783b07a0000aaa7509eafa72664cec54750b71.tar.gz |
use av_fifo_generic_write, old func is deprecated
Originally committed as revision 13511 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dvenc.c')
-rw-r--r-- | libavformat/dvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c index af6856f44a..0b27295fd7 100644 --- a/libavformat/dvenc.c +++ b/libavformat/dvenc.c @@ -253,7 +253,7 @@ int dv_assemble_frame(DVMuxContext *c, AVStream* st, /* FIXME: we have to have more sensible approach than this one */ if (av_fifo_size(&c->audio_data[i]) + data_size >= 100*AVCODEC_MAX_AUDIO_FRAME_SIZE) av_log(st->codec, AV_LOG_ERROR, "Can't process DV frame #%d. Insufficient video data or severe sync problem.\n", c->frames); - av_fifo_write(&c->audio_data[i], data, data_size); + av_fifo_generic_write(&c->audio_data[i], data, data_size, NULL); /* Lets see if we've got enough audio for one DV frame */ c->has_audio |= ((reqasize <= av_fifo_size(&c->audio_data[i])) << i); |