changeset 3741:1a05ff4c7d93 libavformat

Replace invocations of av_fifo_realloc(), which is going to be deprecated, with corresponding invocations of av_fifo_realloc2().
author stefano
date Tue, 19 Aug 2008 18:49:57 +0000
parents b31821aa2235
children 2f06c3611681
files mpegenc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegenc.c	Tue Aug 19 12:36:17 2008 +0000
+++ b/mpegenc.c	Tue Aug 19 18:49:57 2008 +0000
@@ -1170,7 +1170,8 @@
         stream->predecode_packet= pkt_desc;
     stream->next_packet= &pkt_desc->next;
 
-    av_fifo_realloc(&stream->fifo, av_fifo_size(&stream->fifo) + size);
+    if (av_fifo_realloc2(&stream->fifo, av_fifo_size(&stream->fifo) + size) < 0)
+        return -1;
 
     if (s->is_dvd){
         if (is_iframe && (s->packet_number == 0 || (pts - stream->vobu_start_pts >= 36000))) { // min VOBU length 0.4 seconds (mpucoder)