dont output information about what is demuxed after a seek failure
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Feb 2007 23:14:23 +0000 (23:14 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Feb 2007 23:14:23 +0000 (23:14 +0000)
Originally committed as revision 7843 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/seek_test.c

index cbc3dd5..215c1ae 100644 (file)
@@ -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;