mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
sp5xdec: sanitize return value.
i is the decoded size of a recoded packet, which is larger than the original packet. Assume that if decoding succeeded, all the packet was used.
This commit is contained in:
parent
7a539e67f4
commit
b2814b034e
@ -90,7 +90,7 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
|
||||
|
||||
av_free(recoded);
|
||||
|
||||
return i;
|
||||
return i < 0 ? i : avpkt->size;
|
||||
}
|
||||
|
||||
#if CONFIG_SP5X_DECODER
|
||||
|
Loading…
Reference in New Issue
Block a user