Skip to content

Commit

Permalink
ffmpeg: Log improvements and cosmetics.
Browse files Browse the repository at this point in the history
  • Loading branch information
j0sh committed Mar 23, 2020
1 parent 4ab522f commit 00fe946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ffmpeg/lpms_ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 00fe946

Please sign in to comment.