mpegpsmux: Fix integer overflow with huge VBV sizes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
018a6645bc
commit
887cd591a8
@ -1047,7 +1047,7 @@ retry:
|
|||||||
StreamInfo *stream = st->priv_data;
|
StreamInfo *stream = st->priv_data;
|
||||||
const int avail_data= av_fifo_size(stream->fifo);
|
const int avail_data= av_fifo_size(stream->fifo);
|
||||||
const int space= stream->max_buffer_size - stream->buffer_index;
|
const int space= stream->max_buffer_size - stream->buffer_index;
|
||||||
int rel_space= 1024*space / stream->max_buffer_size;
|
int rel_space= 1024LL*space / stream->max_buffer_size;
|
||||||
PacketDesc *next_pkt= stream->premux_packet;
|
PacketDesc *next_pkt= stream->premux_packet;
|
||||||
|
|
||||||
/* for subtitle, a single PES packet must be generated,
|
/* for subtitle, a single PES packet must be generated,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user