Add "Software" metadata tag to PNG

This commit is contained in:
Frank Leon Rose 2021-04-09 10:07:08 -04:00
parent 2c139c187c
commit 242744a7b2

View file

@ -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");