mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-13 14:48:10 -05:00
[transcode] Ignore some errors from avcodec_send_packet(), fixes #483
Since the stream can at least in some cases be transcoded anyway
This commit is contained in:
parent
d0a1fdec67
commit
0b3f4dfa15
@ -586,8 +586,11 @@ decode_filter_encode_write(struct transcode_ctx *ctx, struct stream_ctx *s, AVPa
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = avcodec_send_packet(s->codec, pkt);
|
ret = avcodec_send_packet(s->codec, pkt);
|
||||||
if (ret < 0)
|
if (ret < 0 && (ret != AVERROR_INVALIDDATA) && (ret != AVERROR(EAGAIN))) // We don't bail on invalid data, some streams work anyway
|
||||||
|
{
|
||||||
|
DPRINTF(E_LOG, L_XCODE, "Decoder error, avcodec_send_packet said '%s' (%d)\n", err2str(ret), ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->encode_ctx)
|
if (ctx->encode_ctx)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user