diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-08-13 01:55:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-08-13 01:55:56 +0200 |
commit | a253be38b789385e2a04bd1deff5623980ed67e2 (patch) | |
tree | 3c49250645d34648a204ba0dd7c2c0bafe4ce1ff /src/main.cpp | |
parent | 26b54ff3e4507c51ef113c1a028305de0a520981 (diff) |
kms vaapi: fix capture bug (incorrect video size) caused by shadowed variable...
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 886ae25..42a7012 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -930,7 +930,7 @@ static void save_replay_async(AVCodecContext *video_codec_context, int video_str av_packet.stream_index = stream->index; av_packet_rescale_ts(&av_packet, codec_context->time_base, stream->time_base); - int ret = av_write_frame(av_format_context, &av_packet); + ret = av_write_frame(av_format_context, &av_packet); if(ret < 0) fprintf(stderr, "Error: Failed to write frame index %d to muxer, reason: %s (%d)\n", stream->index, av_error_to_string(ret), ret); |