TAV: now writes encoder q-value to the header

This commit is contained in:
minjaesong
2025-09-25 18:15:53 +09:00
parent ca18595134
commit 4d9981ec23
4 changed files with 40 additions and 33 deletions

View File

@@ -1606,8 +1606,10 @@ static int write_tav_header(tav_encoder_t *enc) {
if (enc->lossless) video_flags |= 0x04; // Lossless
fputc(video_flags, enc->output_fp);
// Reserved bytes (7 bytes)
for (int i = 0; i < 7; i++) {
fputc(enc->quality_level+1, enc->output_fp);
// Reserved bytes (6 bytes)
for (int i = 0; i < 6; i++) {
fputc(0, enc->output_fp);
}