Browse Source

print packet duration when debugging timestamps

Originally committed as revision 20420 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Baptiste Coudurier 15 years ago
parent
commit
050ba6f45e
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavformat/utils.c

+ 4
- 2
libavformat/utils.c View File

@@ -1022,11 +1022,12 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
} }


if(s->debug & FF_FDEBUG_TS) if(s->debug & FF_FDEBUG_TS)
av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, flags=%d\n",
av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, duration=%d, flags=%d\n",
st->cur_pkt.stream_index, st->cur_pkt.stream_index,
st->cur_pkt.pts, st->cur_pkt.pts,
st->cur_pkt.dts, st->cur_pkt.dts,
st->cur_pkt.size, st->cur_pkt.size,
st->cur_pkt.duration,
st->cur_pkt.flags); st->cur_pkt.flags);


s->cur_st = st; s->cur_st = st;
@@ -1048,11 +1049,12 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
} }
} }
if(s->debug & FF_FDEBUG_TS) if(s->debug & FF_FDEBUG_TS)
av_log(s, AV_LOG_DEBUG, "av_read_frame_internal stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, flags=%d\n",
av_log(s, AV_LOG_DEBUG, "av_read_frame_internal stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d, duration=%d, flags=%d\n",
pkt->stream_index, pkt->stream_index,
pkt->pts, pkt->pts,
pkt->dts, pkt->dts,
pkt->size, pkt->size,
pkt->duration,
pkt->flags); pkt->flags);


return 0; return 0;


Loading…
Cancel
Save