mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
mlp_parser: print error when ff_combine_frame() fails to add the current buffer
Fixes part of CID602338 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e807a2b648
commit
df727d408c
@ -239,7 +239,8 @@ static int mlp_parse(AVCodecParserContext *s,
|
||||
}
|
||||
|
||||
if (!mp->in_sync) {
|
||||
ff_combine_frame(&mp->pc, END_NOT_FOUND, &buf, &buf_size);
|
||||
if (ff_combine_frame(&mp->pc, END_NOT_FOUND, &buf, &buf_size) != -1)
|
||||
av_log(avctx, AV_LOG_WARNING, "ff_combine_frame failed\n");
|
||||
return buf_size;
|
||||
}
|
||||
|
||||
@ -257,7 +258,8 @@ static int mlp_parse(AVCodecParserContext *s,
|
||||
}
|
||||
|
||||
if (mp->pc.index + buf_size < 2) {
|
||||
ff_combine_frame(&mp->pc, END_NOT_FOUND, &buf, &buf_size);
|
||||
if (ff_combine_frame(&mp->pc, END_NOT_FOUND, &buf, &buf_size) != -1)
|
||||
av_log(avctx, AV_LOG_WARNING, "ff_combine_frame failed\n");
|
||||
return buf_size;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user