Ticket #10393: patch0001.diff

File patch0001.diff, 771 bytes (added by markshw, 3 years ago)

patch to apply to enable logging

  • libavcodec/encode.c

    From 39b0de9eb56bbb067f72b3250e4282caa85ada17 Mon Sep 17 00:00:00 2001
    From: Mark Shwartzman <markshw@fb.com>
    Date: Tue, 30 May 2023 15:29:14 -0700
    Subject: [PATCH] add pts logging for encode frame
    
    ---
     libavcodec/encode.c | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/libavcodec/encode.c b/libavcodec/encode.c
    index 041fc7670e..2df3b9f713 100644
    a b int attribute_align_arg avcodec_send_frame(AVCodecContext *avctx, const AVFrame  
    497497    if (!frame) {
    498498        avci->draining = 1;
    499499    } else {
     500        av_log(avctx, AV_LOG_INFO, "DBG: avcodec_send_frame pts=%lld\n", frame->pts);
    500501        ret = encode_send_frame_internal(avctx, frame);
    501502        if (ret < 0)
    502503            return ret;