comparison utils.c @ 5338:d6780bb3fde6 libavformat

print packet duration when debugging timestamps
author bcoudurier
date Fri, 30 Oct 2009 18:17:16 +0000
parents 3000edd97499
children 4696e193f943
comparison
equal deleted inserted replaced
5337:9a3338ab7453 5338:d6780bb3fde6
1020 // av_free_packet(&st->cur_pkt); 1020 // av_free_packet(&st->cur_pkt);
1021 // return -1; 1021 // return -1;
1022 } 1022 }
1023 1023
1024 if(s->debug & FF_FDEBUG_TS) 1024 if(s->debug & FF_FDEBUG_TS)
1025 av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, flags=%d\n", 1025 av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, duration=%d, flags=%d\n",
1026 st->cur_pkt.stream_index, 1026 st->cur_pkt.stream_index,
1027 st->cur_pkt.pts, 1027 st->cur_pkt.pts,
1028 st->cur_pkt.dts, 1028 st->cur_pkt.dts,
1029 st->cur_pkt.size, 1029 st->cur_pkt.size,
1030 st->cur_pkt.duration,
1030 st->cur_pkt.flags); 1031 st->cur_pkt.flags);
1031 1032
1032 s->cur_st = st; 1033 s->cur_st = st;
1033 st->cur_ptr = st->cur_pkt.data; 1034 st->cur_ptr = st->cur_pkt.data;
1034 st->cur_len = st->cur_pkt.size; 1035 st->cur_len = st->cur_pkt.size;
1046 } 1047 }
1047 } 1048 }
1048 } 1049 }
1049 } 1050 }
1050 if(s->debug & FF_FDEBUG_TS) 1051 if(s->debug & FF_FDEBUG_TS)
1051 av_log(s, AV_LOG_DEBUG, "av_read_frame_internal stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, flags=%d\n", 1052 av_log(s, AV_LOG_DEBUG, "av_read_frame_internal stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, duration=%d, flags=%d\n",
1052 pkt->stream_index, 1053 pkt->stream_index,
1053 pkt->pts, 1054 pkt->pts,
1054 pkt->dts, 1055 pkt->dts,
1055 pkt->size, 1056 pkt->size,
1057 pkt->duration,
1056 pkt->flags); 1058 pkt->flags);
1057 1059
1058 return 0; 1060 return 0;
1059 } 1061 }
1060 1062