From d71fa2b72ed866e786b523b5f1de748925622845 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Thu, 25 Mar 2010 20:28:23 +0100 Subject: [PATCH] Replace av_read_packet() (obsolete) by av_read_frame() Fixes MP3 playback, probably others too. --- src/transcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transcode.c b/src/transcode.c index 1f95ce3f..1e3d5c1b 100644 --- a/src/transcode.c +++ b/src/transcode.c @@ -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");