diff mbox

[FFmpeg-devel,3/3] avutil/tests/audio_fifo.c: Corrected test error messages

Message ID 1482893000-29962-3-git-send-email-thomastdt@googlemail.com
State Accepted
Commit d7a3c7427f95bd1ad7e6aa36e23d6d048596a717
Headers show

Commit Message

Thomas Turner Dec. 28, 2016, 2:43 a.m. UTC
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
---
 libavutil/tests/audio_fifo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Niedermayer Dec. 28, 2016, 3:03 p.m. UTC | #1
On Tue, Dec 27, 2016 at 06:43:20PM -0800, Thomas Turner wrote:
> Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
> ---
>  libavutil/tests/audio_fifo.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

applied

thx

[..]
diff mbox

Patch

diff --git a/libavutil/tests/audio_fifo.c b/libavutil/tests/audio_fifo.c
index 2cef6f0..861cebb 100644
--- a/libavutil/tests/audio_fifo.c
+++ b/libavutil/tests/audio_fifo.c
@@ -147,7 +147,7 @@  static void test_function(const TestStruct test_sample)
 
     ret = read_samples_from_audio_fifo(afifo, &output_data, test_sample.nb_samples_pch);
     if (ret < 0){
-        ERROR("ERROR: av_audio_fifo_write failed!");
+        ERROR("ERROR: av_audio_fifo_read failed!");
     }
     printf("read: %d\n", ret);
     print_audio_bytes(&test_sample, output_data, ret);
@@ -167,7 +167,7 @@  static void test_function(const TestStruct test_sample)
     for (i = 0; i < afifo->nb_samples; ++i){
         ret = av_audio_fifo_peek_at(afifo, output_data, 1, i);
         if (ret < 0){
-            ERROR("ERROR: av_audio_fifo_peek failed!");
+            ERROR("ERROR: av_audio_fifo_peek_at failed!");
         }
         printf("%d:\n", i);
         print_audio_bytes(&test_sample, output_data, ret);