You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/ivfenc: fix division by zero
Fixes Ticket 5115 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -72,8 +72,9 @@ static int ivf_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
static int ivf_write_trailer(AVFormatContext *s)
|
||||
{
|
||||
AVIOContext *pb = s->pb;
|
||||
if (pb->seekable) {
|
||||
IVFEncContext *ctx = s->priv_data;
|
||||
IVFEncContext *ctx = s->priv_data;
|
||||
|
||||
if (pb->seekable && ctx->frame_cnt > 1) {
|
||||
size_t end = avio_tell(pb);
|
||||
|
||||
avio_seek(pb, 24, SEEK_SET);
|
||||
|
Reference in New Issue
Block a user