Adjust debug logging
This commit is contained in:
parent
3d70e621b2
commit
84035ef4f7
|
@ -2630,9 +2630,7 @@ bool Monitor::Decode() {
|
||||||
delete packet->image;
|
delete packet->image;
|
||||||
packet->image = nullptr;
|
packet->image = nullptr;
|
||||||
}
|
}
|
||||||
Debug(1, "Done assigning about to unref");
|
|
||||||
av_frame_unref(dest_frame);
|
av_frame_unref(dest_frame);
|
||||||
Debug(1, "Done assigning onde to unref");
|
|
||||||
} // end if have convert_context
|
} // end if have convert_context
|
||||||
} // end if need transfer to image
|
} // end if need transfer to image
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -133,7 +133,7 @@ int ZMPacket::decode(AVCodecContext *ctx) {
|
||||||
#if LIBAVCODEC_VERSION_CHECK(57, 89, 0, 89, 0)
|
#if LIBAVCODEC_VERSION_CHECK(57, 89, 0, 89, 0)
|
||||||
|
|
||||||
if (fix_deprecated_pix_fmt(ctx->sw_pix_fmt) != fix_deprecated_pix_fmt(static_cast<AVPixelFormat>(in_frame->format))) {
|
if (fix_deprecated_pix_fmt(ctx->sw_pix_fmt) != fix_deprecated_pix_fmt(static_cast<AVPixelFormat>(in_frame->format))) {
|
||||||
Debug(1, "Have different format ctx->pix_fmt %s ?= ctx->sw_pix_fmt %s in_frame->format %s.",
|
Debug(3, "Have different format ctx->pix_fmt %s ?= ctx->sw_pix_fmt %s in_frame->format %s.",
|
||||||
av_get_pix_fmt_name(ctx->pix_fmt),
|
av_get_pix_fmt_name(ctx->pix_fmt),
|
||||||
av_get_pix_fmt_name(ctx->sw_pix_fmt),
|
av_get_pix_fmt_name(ctx->sw_pix_fmt),
|
||||||
av_get_pix_fmt_name(static_cast<AVPixelFormat>(in_frame->format))
|
av_get_pix_fmt_name(static_cast<AVPixelFormat>(in_frame->format))
|
||||||
|
@ -205,7 +205,7 @@ int ZMPacket::decode(AVCodecContext *ctx) {
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
Debug(2, "Same pix format %s so not hwtransferring. sw_pix_fmt is %s",
|
Debug(3, "Same pix format %s so not hwtransferring. sw_pix_fmt is %s",
|
||||||
av_get_pix_fmt_name(ctx->pix_fmt),
|
av_get_pix_fmt_name(ctx->pix_fmt),
|
||||||
av_get_pix_fmt_name(ctx->sw_pix_fmt)
|
av_get_pix_fmt_name(ctx->sw_pix_fmt)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue