Skip to content

Commit

Permalink
avformat/matroskaenc: remove accidental variable shadowing
Browse files Browse the repository at this point in the history
Should fix use of uninitialized value in a failure path.

Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed May 20, 2023
1 parent 8980c13 commit efdc6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavformat/matroskaenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit efdc6e8

Please sign in to comment.