From b929eb50415fe002d60588bb29b4f05e3ce39c69 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 5 Feb 2007 23:14:23 +0000
Subject: [PATCH] dont output information about what is demuxed after a seek
 failure

Originally committed as revision 7843 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 tests/seek_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/seek_test.c b/tests/seek_test.c
index cbc3dd52453..215c1aec88b 100644
--- a/tests/seek_test.c
+++ b/tests/seek_test.c
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
         AVStream *st;
 
         memset(&pkt, 0, sizeof(pkt));
-
+        if(ret>=0){
         ret= av_read_frame(ic, &pkt);
         printf("ret:%2d", ret);
         if(ret>=0){
@@ -73,6 +73,7 @@ int main(int argc, char **argv)
             printf(" st:%2d dts:%f pts:%f pos:%Ld size:%d flags:%d", pkt.stream_index, pkt.dts*av_q2d(st->time_base), pkt.pts*av_q2d(st->time_base), pkt.pos, pkt.size, pkt.flags);
         }
         printf("\n");
+        }
 
         if(i>25) break;
 
-- 
GitLab