mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-07 00:20:09 +02:00
shorten: pass on error value from allocate_buffers() instead of returning -1
This commit is contained in:
parent
9e5e2c2d01
commit
a8055992c0
@ -306,7 +306,7 @@ static int decode_subframe_lpc(ShortenContext *s, int channel,
|
||||
|
||||
static int read_header(ShortenContext *s)
|
||||
{
|
||||
int i;
|
||||
int i, ret;
|
||||
int maxnlpc = 0;
|
||||
/* shorten signature */
|
||||
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);
|
||||
|
||||
if (allocate_buffers(s))
|
||||
return -1;
|
||||
if ((ret = allocate_buffers(s)) < 0)
|
||||
return ret;
|
||||
|
||||
init_offset(s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user