From 00fe946e23c98458f39d6148c360f5c5ddfce716 Mon Sep 17 00:00:00 2001 From: Josh Allmann Date: Sun, 22 Mar 2020 23:12:10 +0000 Subject: [PATCH] ffmpeg: Log improvements and cosmetics. --- ffmpeg/lpms_ffmpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ffmpeg/lpms_ffmpeg.c b/ffmpeg/lpms_ffmpeg.c index bc9e642ffd..accae3aecc 100644 --- a/ffmpeg/lpms_ffmpeg.c +++ b/ffmpeg/lpms_ffmpeg.c @@ -889,7 +889,7 @@ int process_in(struct input_ctx *ictx, AVFrame *frame, AVPacket *pkt) { #define dec_err(msg) { \ if (!ret) ret = -1; \ - fprintf(stderr, msg); \ + fprintf(stderr, "dec_cleanup: "msg); \ goto dec_cleanup; \ } int ret = 0; @@ -915,8 +915,8 @@ int process_in(struct input_ctx *ictx, AVFrame *frame, AVPacket *pkt) // Probably okay for now, since DTS really shouldn't go backwards anyway. AVFrame *last_frame = NULL; if (decoder == ictx->vc) { - ictx->first_pkt = av_packet_clone(pkt); - ictx->first_pkt->pts = -1; + ictx->first_pkt = av_packet_clone(pkt); + ictx->first_pkt->pts = -1; last_frame = ictx->last_frame_v; } else { last_frame = ictx->last_frame_a;