Quoting Mark Thompson (2017-06-24 01:39:14) > +static int trace_headers(AVBSFContext *bsf, AVPacket *out) > +{ > + TraceHeadersContext *ctx = bsf->priv_data; > + CodedBitstreamFragment au; > + AVPacket *in; > + int err; > + > + err = ff_bsf_get_packet(bsf, &in); > + if (err < 0) > + return err; > + > + if (in->pts == AV_NOPTS_VALUE) > + av_log(bsf, AV_LOG_INFO, "Packet (%sno pts)\n", > + in->flags & AV_PKT_FLAG_KEY ? "key frame, " : ""); > + else > + av_log(bsf, AV_LOG_INFO, "Packet (%spts %"PRId64")\n", > + in->flags & AV_PKT_FLAG_KEY ? "key frame, " : "", in->pts);
Why not log the dts as well? Otherwise looks ok. -- Anton Khirnov _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel