[xcode] Add "samples_per_frame" query parameter

This commit is contained in:
ejurgensen 2023-05-01 23:32:06 +02:00
parent 0d095b3037
commit cd62070fdb

View File

@ -2202,6 +2202,11 @@ transcode_encode_query(struct encode_ctx *ctx, const char *query)
return ctx->audio_stream.stream->codecpar->channels;
#endif
}
else if (strcmp(query, "samples_per_frame") == 0)
{
if (ctx->audio_stream.stream)
return ctx->audio_stream.stream->codecpar->frame_size;
}
return -1;
}