Skip to content

Commit

Permalink
lavd video: don't print false positive errs
Browse files Browse the repository at this point in the history
do not print errors like:

    uv -d dummy -t testcard -c libavcodec
    [lavd] Error while decoding frame (rc == 42836): Error number 42836 occurred.

when decoder returns empty packet ("error" code acutally indicated number
of consumed bytes).
  • Loading branch information
MartinPulec committed Aug 18, 2023
1 parent 732441f commit d4be2d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video_decompress/libavcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ decode_frame(struct state_libavcodec_decompress *s, unsigned char *src,
}
}
if (s->pkt->size == 0) {
ret = 0;
break;
}
src += ret;
Expand Down

0 comments on commit d4be2d9

Please sign in to comment.