mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
Add "Software" metadata tag to PNG
This commit is contained in:
parent
2c139c187c
commit
242744a7b2
1 changed files with 3 additions and 0 deletions
|
@ -112,6 +112,9 @@ static bool in_frame_to_png(
|
|||
|
||||
LOGV("Scaling image: %llu", get_timestamp() - start);
|
||||
|
||||
av_dict_set(&rgbFrame->metadata,
|
||||
"Software", "scrcpy/" SCRCPY_VERSION, 0);
|
||||
|
||||
AVCodec *outCodec = avcodec_find_encoder(AV_CODEC_ID_PNG);
|
||||
if (!outCodec) {
|
||||
LOGE("Failed to find PNG codec");
|
||||
|
|
Loading…
Add table
Reference in a new issue