diff mbox series

[FFmpeg-devel] tests/audiogen: Fix total RIFF chunk size

Message ID 1710492833-3885-1-git-send-email-t.rapp@noa-archive.com
State Accepted
Commit 94ebe604b00acc170afa228824cd04773eb786ce
Headers show
Series [FFmpeg-devel] tests/audiogen: Fix total RIFF chunk size | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Tobias Rapp March 15, 2024, 8:53 a.m. UTC
The "RIFF" identifier and chunk size fields should not be included
within the size value.
---
 tests/audiogen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tobias Rapp March 26, 2024, 12:33 p.m. UTC | #1
On 15/03/2024 09:53, Tobias Rapp wrote:

> The "RIFF" identifier and chunk size fields should not be included
> within the size value.
> ---
>   tests/audiogen.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/audiogen.c b/tests/audiogen.c
> index c43bb70..df1dea6 100644
> --- a/tests/audiogen.c
> +++ b/tests/audiogen.c
> @@ -109,7 +109,7 @@ static void put32(uint32_t v)
>       fputc((v >> 24) & 0xff, outfile);
>   }
>   
> -#define HEADER_SIZE      46
> +#define HEADER_SIZE      38
>   #define FMT_SIZE         18
>   #define SAMPLE_SIZE       2
>   #define WFORMAT_PCM  0x0001

Will apply in two days if there are no objections.

Regards, Tobias
Tobias Rapp March 28, 2024, 10:56 a.m. UTC | #2
On 26/03/2024 13:33, Tobias Rapp wrote:

> On 15/03/2024 09:53, Tobias Rapp wrote:
>
>> The "RIFF" identifier and chunk size fields should not be included
>> within the size value.
>> ---
>>   tests/audiogen.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tests/audiogen.c b/tests/audiogen.c
>> index c43bb70..df1dea6 100644
>> --- a/tests/audiogen.c
>> +++ b/tests/audiogen.c
>> @@ -109,7 +109,7 @@ static void put32(uint32_t v)
>>       fputc((v >> 24) & 0xff, outfile);
>>   }
>>   -#define HEADER_SIZE      46
>> +#define HEADER_SIZE      38
>>   #define FMT_SIZE         18
>>   #define SAMPLE_SIZE       2
>>   #define WFORMAT_PCM  0x0001
>
> Will apply in two days if there are no objections.
>
Applied.

Regards, Tobias
diff mbox series

Patch

diff --git a/tests/audiogen.c b/tests/audiogen.c
index c43bb70..df1dea6 100644
--- a/tests/audiogen.c
+++ b/tests/audiogen.c
@@ -109,7 +109,7 @@  static void put32(uint32_t v)
     fputc((v >> 24) & 0xff, outfile);
 }
 
-#define HEADER_SIZE      46
+#define HEADER_SIZE      38
 #define FMT_SIZE         18
 #define SAMPLE_SIZE       2
 #define WFORMAT_PCM  0x0001