mirror of https://git.ffmpeg.org/ffmpeg.git
avutil/tests/audio_fifo.c: Corrected test error messages
Signed-off-by: Thomas Turner <thomastdt@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f317080024
commit
d7a3c7427f
|
@ -140,7 +140,7 @@ static void test_function(const TestStruct test_sample)
|
||||||
|
|
||||||
ret = read_samples_from_audio_fifo(afifo, &output_data, test_sample.nb_samples_pch);
|
ret = read_samples_from_audio_fifo(afifo, &output_data, test_sample.nb_samples_pch);
|
||||||
if (ret < 0){
|
if (ret < 0){
|
||||||
ERROR("ERROR: av_audio_fifo_write failed!");
|
ERROR("ERROR: av_audio_fifo_read failed!");
|
||||||
}
|
}
|
||||||
printf("read: %d\n", ret);
|
printf("read: %d\n", ret);
|
||||||
print_audio_bytes(&test_sample, output_data, ret);
|
print_audio_bytes(&test_sample, output_data, ret);
|
||||||
|
@ -160,7 +160,7 @@ static void test_function(const TestStruct test_sample)
|
||||||
for (i = 0; i < afifo->nb_samples; ++i){
|
for (i = 0; i < afifo->nb_samples; ++i){
|
||||||
ret = av_audio_fifo_peek_at(afifo, output_data, 1, i);
|
ret = av_audio_fifo_peek_at(afifo, output_data, 1, i);
|
||||||
if (ret < 0){
|
if (ret < 0){
|
||||||
ERROR("ERROR: av_audio_fifo_peek failed!");
|
ERROR("ERROR: av_audio_fifo_peek_at failed!");
|
||||||
}
|
}
|
||||||
printf("%d:\n", i);
|
printf("%d:\n", i);
|
||||||
print_audio_bytes(&test_sample, output_data, ret);
|
print_audio_bytes(&test_sample, output_data, ret);
|
||||||
|
|
Loading…
Reference in New Issue