Mercurial > libavformat.hg
changeset 3344:f5b6c915f991 libavformat
Ensure that one can store X bytes in a fifo of size X.
Fixed issue417.
author | michael |
---|---|
date | Sun, 25 May 2008 23:04:09 +0000 |
parents | 201853ef633e |
children | 8947d86e480b |
files | mpegenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegenc.c Sun May 25 22:20:39 2008 +0000 +++ b/mpegenc.c Sun May 25 23:04:09 2008 +0000 @@ -1170,7 +1170,7 @@ stream->predecode_packet= pkt_desc; stream->next_packet= &pkt_desc->next; - av_fifo_realloc(&stream->fifo, av_fifo_size(&stream->fifo) + size + 1); + av_fifo_realloc(&stream->fifo, av_fifo_size(&stream->fifo) + size); if (s->is_dvd){ if (is_iframe && (s->packet_number == 0 || (pts - stream->vobu_start_pts >= 36000))) { // min VOBU length 0.4 seconds (mpucoder)