提交 d541c8b4 编写于 作者: S Stefano Sabatini 提交者: Michael Niedermayer

lavf: enable av_dlog message in av_interleaved_write_frame()

Help debugging timestamp issues.
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 a7844c58
...@@ -3092,7 +3092,8 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){ ...@@ -3092,7 +3092,8 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO && pkt->size==0) if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO && pkt->size==0)
return 0; return 0;
//av_log(NULL, AV_LOG_DEBUG, "av_interleaved_write_frame %d %"PRId64" %"PRId64"\n", pkt->size, pkt->dts, pkt->pts); av_dlog(s, "av_interleaved_write_frame size:%d dts:%"PRId64" pts:%"PRId64"\n",
pkt->size, pkt->dts, pkt->pts);
if(compute_pkt_fields2(s, st, pkt) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS)) if(compute_pkt_fields2(s, st, pkt) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册