Browse Source

dca: Replace oversized unused get_bits() with skip_bits_long().

tags/n0.9
Alex Converse 14 years ago
parent
commit
999e7ebd23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/dca.c

+ 2
- 2
libavcodec/dca.c View File

@@ -520,7 +520,7 @@ static int dca_parse_frame_header(DCAContext * s)
init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8); init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8);


/* Sync code */ /* Sync code */
get_bits(&s->gb, 32);
skip_bits_long(&s->gb, 32);


/* Frame header */ /* Frame header */
s->frame_type = get_bits(&s->gb, 1); s->frame_type = get_bits(&s->gb, 1);
@@ -1258,7 +1258,7 @@ static int dca_subframe_footer(DCAContext * s, int base_channel)
/* presumably optional information only appears in the core? */ /* presumably optional information only appears in the core? */
if (!base_channel) { if (!base_channel) {
if (s->timestamp) if (s->timestamp)
get_bits(&s->gb, 32);
skip_bits_long(&s->gb, 32);


if (s->aux_data) if (s->aux_data)
aux_data_count = get_bits(&s->gb, 6); aux_data_count = get_bits(&s->gb, 6);


Loading…
Cancel
Save