|
|
|
@ -66,13 +66,13 @@ int main(int argc, char **argv) |
|
|
|
|
|
|
|
|
|
memset(&pkt, 0, sizeof(pkt)); |
|
|
|
|
if(ret>=0){ |
|
|
|
|
ret= av_read_frame(ic, &pkt); |
|
|
|
|
printf("ret:%2d", ret); |
|
|
|
|
if(ret>=0){ |
|
|
|
|
st= ic->streams[pkt.stream_index]; |
|
|
|
|
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"); |
|
|
|
|
ret= av_read_frame(ic, &pkt); |
|
|
|
|
printf("ret:%2d", ret); |
|
|
|
|
if(ret>=0){ |
|
|
|
|
st= ic->streams[pkt.stream_index]; |
|
|
|
|
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; |
|
|
|
|