Replace av_read_packet() (obsolete) by av_read_frame()

Fixes MP3 playback, probably others too.
This commit is contained in:
Julien BLACHE 2010-03-25 20:28:23 +01:00
parent e6d75534d7
commit d71fa2b72e

View File

@ -280,7 +280,7 @@ transcode(struct transcode_ctx *ctx, struct evbuffer *evbuf, int wanted)
if (ctx->apacket.data) if (ctx->apacket.data)
av_free_packet(&ctx->apacket); av_free_packet(&ctx->apacket);
ret = av_read_packet(ctx->fmtctx, &ctx->apacket); ret = av_read_frame(ctx->fmtctx, &ctx->apacket);
if (ret < 0) if (ret < 0)
{ {
DPRINTF(E_WARN, L_XCODE, "Could not read more data\n"); DPRINTF(E_WARN, L_XCODE, "Could not read more data\n");