mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
Replace av_read_packet() (obsolete) by av_read_frame()
Fixes MP3 playback, probably others too.
This commit is contained in:
parent
e6d75534d7
commit
d71fa2b72e
@ -280,7 +280,7 @@ transcode(struct transcode_ctx *ctx, struct evbuffer *evbuf, int wanted)
|
||||
if (ctx->apacket.data)
|
||||
av_free_packet(&ctx->apacket);
|
||||
|
||||
ret = av_read_packet(ctx->fmtctx, &ctx->apacket);
|
||||
ret = av_read_frame(ctx->fmtctx, &ctx->apacket);
|
||||
if (ret < 0)
|
||||
{
|
||||
DPRINTF(E_WARN, L_XCODE, "Could not read more data\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user