Skip to content

Commit efdc6e8

Browse files
committed
avformat/matroskaenc: remove accidental variable shadowing
Should fix use of uninitialized value in a failure path. Signed-off-by: James Almer <[email protected]>
1 parent 8980c13 commit efdc6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavformat/matroskaenc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,8 +2697,8 @@ static int mkv_write_block(void *logctx, MatroskaMuxContext *mkv,
26972697
if (side_data && side_data_size) {
26982698
uint8_t *payload;
26992699
size_t payload_size, buf_size;
2700-
int ret = av_dynamic_hdr_plus_to_t35((AVDynamicHDRPlus *)side_data, NULL,
2701-
&payload_size);
2700+
ret = av_dynamic_hdr_plus_to_t35((AVDynamicHDRPlus *)side_data, NULL,
2701+
&payload_size);
27022702
if (ret < 0)
27032703
return ret;
27042704

0 commit comments

Comments
 (0)