mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-02 22:29:25 +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);
|
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);
|
AVCodec *outCodec = avcodec_find_encoder(AV_CODEC_ID_PNG);
|
||||||
if (!outCodec) {
|
if (!outCodec) {
|
||||||
LOGE("Failed to find PNG codec");
|
LOGE("Failed to find PNG codec");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue