Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]fix a dca bug which will cause data undecoded lost #172

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion libavcodec/dcadec.c
Expand Up @@ -1990,7 +1990,9 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
avctx->bit_rate = s->bit_rate;
*got_frame_ptr = 1;

return buf_size;
//fixed by chenhaixin
// return buf_size;
return FFMIN(buf_size, s->frame_size);
}

/**
Expand Down