Browse Source

cinepak, simplify, use AV_RB24()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
f35f50b311
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/cinepak.c

+ 1
- 1
libavcodec/cinepak.c View File

@@ -326,7 +326,7 @@ static int cinepak_decode (CinepakContext *s)


frame_flags = s->data[0]; frame_flags = s->data[0];
num_strips = AV_RB16 (&s->data[8]); num_strips = AV_RB16 (&s->data[8]);
encoded_buf_size = ((s->data[1] << 16) | AV_RB16 (&s->data[2]));
encoded_buf_size = AV_RB24(&s->data[1]);


/* if this is the first frame, check for deviant Sega FILM data */ /* if this is the first frame, check for deviant Sega FILM data */
if (s->sega_film_skip_bytes == -1) { if (s->sega_film_skip_bytes == -1) {


Loading…
Cancel
Save