diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 492b86b8d7..41e13b273d 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -2697,8 +2697,8 @@ static int mkv_write_block(void *logctx, MatroskaMuxContext *mkv, if (side_data && side_data_size) { uint8_t *payload; size_t payload_size, buf_size; - int ret = av_dynamic_hdr_plus_to_t35((AVDynamicHDRPlus *)side_data, NULL, - &payload_size); + ret = av_dynamic_hdr_plus_to_t35((AVDynamicHDRPlus *)side_data, NULL, + &payload_size); if (ret < 0) return ret;