Browse Source

avformat/webvttenc: Fix use of uninitialized variable

Happened in 9168a1c0e6.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
master
Andreas Rheinhardt 4 years ago
parent
commit
44c8b67502
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/webvttenc.c

+ 1
- 1
libavformat/webvttenc.c View File

@@ -87,7 +87,7 @@ static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt)
settings = av_packet_get_side_data(pkt, AV_PKT_DATA_WEBVTT_SETTINGS,
&settings_size);

if (settings_size_int > INT_MAX)
if (settings_size > INT_MAX)
return AVERROR(EINVAL);

settings_size_int = settings_size;


Loading…
Cancel
Save