You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/pgssubdec: Always return error upon allocation error
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -677,7 +677,8 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub_ptr,
|
|||||||
ret = AVERROR_INVALIDDATA;
|
ret = AVERROR_INVALIDDATA;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) {
|
if (ret < 0 && (ret == AVERROR(ENOMEM) ||
|
||||||
|
avctx->err_recognition & AV_EF_EXPLODE)) {
|
||||||
avsubtitle_free(data);
|
avsubtitle_free(data);
|
||||||
*got_sub_ptr = 0;
|
*got_sub_ptr = 0;
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user