mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
Ensure that one can store X bytes in a fifo of size X.
Fixed issue417. Originally committed as revision 13405 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -1170,7 +1170,7 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user