diff mbox series

[FFmpeg-devel] avformat/webvttenc: Fix use of uninitialized variable

Message ID HE1PR0301MB2154CACF140760C6014A9F828F749@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit 44c8b6750231137d5ba650d6cc149c9c23ae4c68
Headers show
Series [FFmpeg-devel] avformat/webvttenc: Fix use of uninitialized variable | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt April 8, 2021, 12:07 p.m. UTC
Happened in 9168a1c0e67b5c31727b12329b6f52d2bb5e0a14.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/webvttenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c
index 809fead69f..2bc86041a7 100644
--- a/libavformat/webvttenc.c
+++ b/libavformat/webvttenc.c
@@ -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;