Browse Source

shorten: pass on error value from allocate_buffers() instead of returning -1

tags/n0.9
Justin Ruggles 13 years ago
parent
commit
a8055992c0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavcodec/shorten.c

+ 3
- 3
libavcodec/shorten.c View File

@@ -306,7 +306,7 @@ static int decode_subframe_lpc(ShortenContext *s, int channel,


static int read_header(ShortenContext *s) static int read_header(ShortenContext *s)
{ {
int i;
int i, ret;
int maxnlpc = 0; int maxnlpc = 0;
/* shorten signature */ /* shorten signature */
if (get_bits_long(&s->gb, 32) != AV_RB32("ajkg")) { if (get_bits_long(&s->gb, 32) != AV_RB32("ajkg")) {
@@ -342,8 +342,8 @@ static int read_header(ShortenContext *s)
} }
s->nwrap = FFMAX(NWRAP, maxnlpc); s->nwrap = FFMAX(NWRAP, maxnlpc);


if (allocate_buffers(s))
return -1;
if ((ret = allocate_buffers(s)) < 0)
return ret;


init_offset(s); init_offset(s);




Loading…
Cancel
Save