Revision 716ae7ca tests/seek_test.c

View differences:

tests/seek_test.c
66 66

  
67 67
        memset(&pkt, 0, sizeof(pkt));
68 68
        if(ret>=0){
69
        ret= av_read_frame(ic, &pkt);
70
        printf("ret:%2d", ret);
71
        if(ret>=0){
72
            st= ic->streams[pkt.stream_index];
73
            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);
74
        }
75
        printf("\n");
69
            ret= av_read_frame(ic, &pkt);
70
            printf("ret:%2d", ret);
71
            if(ret>=0){
72
                st= ic->streams[pkt.stream_index];
73
                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);
74
            }
75
            printf("\n");
76 76
        }
77 77

  
78 78
        if(i>25) break;

Also available in: Unified diff