changeset 3392:4b7dccbc0d81 libavformat

use av_fifo_generic_write, old func is deprecated
author bcoudurier
date Wed, 28 May 2008 22:00:45 +0000
parents 39750abd9bab
children f95ddc69c48d
files dvenc.c mpegenc.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dvenc.c	Wed May 28 21:22:08 2008 +0000
+++ b/dvenc.c	Wed May 28 22:00:45 2008 +0000
@@ -253,7 +253,7 @@
           /* 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);
--- a/mpegenc.c	Wed May 28 21:22:08 2008 +0000
+++ b/mpegenc.c	Wed May 28 22:00:45 2008 +0000
@@ -1180,7 +1180,7 @@
         }
     }
 
-    av_fifo_write(&stream->fifo, buf, size);
+    av_fifo_generic_write(&stream->fifo, buf, size, NULL);
 
     for(;;){
         int ret= output_packet(ctx, 0);