mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
dcadec: Delete redundant init_get_bits call
No initialization is needed in dca_decode_frame, because the next thing it does is calling dca_parse_frame_header, which takes care of the needed initialization. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
4d40e073dc
commit
b3d905b702
@ -1724,7 +1724,6 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8);
|
|
||||||
if ((ret = dca_parse_frame_header(s)) < 0) {
|
if ((ret = dca_parse_frame_header(s)) < 0) {
|
||||||
//seems like the frame is corrupt, try with the next one
|
//seems like the frame is corrupt, try with the next one
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user