diff options
author | James Almer <jamrial@gmail.com> | 2023-05-20 09:28:46 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-20 09:28:46 -0300 |
commit | efdc6e8200e61b5f00c7074f0d061157b550afb2 (patch) | |
tree | 3c0db030cad1a311ec317b9d62f3f2ecc5361b5b /libavformat | |
parent | 8980c1313b23004b1789d01ba8be423d175fd8a8 (diff) | |
download | ffmpeg-efdc6e8200e61b5f00c7074f0d061157b550afb2.tar.gz |
avformat/matroskaenc: remove accidental variable shadowing
Should fix use of uninitialized value in a failure path.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |