diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-03-15 13:11:57 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-03-17 07:29:47 +0100 |
commit | 79f43a8cb6ff426e706a4cf4f21ad6dd7ebf3467 (patch) | |
tree | 9d932c08647387c91c47defdc542e58ba2208b37 /libavformat | |
parent | 4afedfd8e5c5f102d3a67c224c33b51bbed47eee (diff) | |
download | ffmpeg-79f43a8cb6ff426e706a4cf4f21ad6dd7ebf3467.tar.gz |
lavf: enable av_dlog() in compute_pkt_fields2()
Turns a comment into an av_dlog() instruction, also add a commented
issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 77f21ce4641b53f3277ba30ca3d009b6250fd9ea)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 113728f389..d5372d7233 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -18,6 +18,9 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + +/* #define DEBUG */ + #include "avformat.h" #include "avio_internal.h" #include "internal.h" @@ -2910,7 +2913,8 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt){ int delay = FFMAX(st->codec->has_b_frames, !!st->codec->max_b_frames); int num, den, frame_size, i; -// av_log(s, AV_LOG_DEBUG, "av_write_frame: pts:%"PRId64" dts:%"PRId64" cur_dts:%"PRId64" b:%d size:%d st:%d\n", pkt->pts, pkt->dts, st->cur_dts, delay, pkt->size, pkt->stream_index); + av_dlog(s, "av_write_frame: pts:%"PRId64" dts:%"PRId64" cur_dts:%"PRId64" b:%d size:%d st:%d\n", + pkt->pts, pkt->dts, st->cur_dts, delay, pkt->size, pkt->stream_index); /* if(pkt->pts == AV_NOPTS_VALUE && pkt->dts == AV_NOPTS_VALUE) return -1;*/ |