# HG changeset patch # User stefano # Date 1219171797 0 # Node ID 1a05ff4c7d93bddf97d840293c8b16881cdaafca # Parent b31821aa22355371cd5d82a83ebe5698282b6432 Replace invocations of av_fifo_realloc(), which is going to be deprecated, with corresponding invocations of av_fifo_realloc2(). diff -r b31821aa2235 -r 1a05ff4c7d93 mpegenc.c --- 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)