diff --git a/libavcodec/h2645_sei.c b/libavcodec/h2645_sei.c index 332371e5c0..638362fbf6 100644 --- a/libavcodec/h2645_sei.c +++ b/libavcodec/h2645_sei.c @@ -145,7 +145,7 @@ static int decode_registered_user_data_closed_caption(H2645SEIA53Caption *h, static int decode_registered_user_data(H2645SEI *h, GetByteContext *gb, enum AVCodecID codec_id, void *logctx) { - int country_code, provider_code; + int country_code, provider_code = -1; if (bytestream2_get_bytes_left(gb) < 3) return AVERROR_INVALIDDATA;