[FFmpeg-cvslog] avcodec/mlp_parser: check ff_combine_frame() return code
Michael Niedermayer
git at videolan.org
Fri Jul 4 20:30:12 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jul 4 19:33:54 2014 +0200| [2d15554850799346472683b4a2df05878dcfad48] | committer: Michael Niedermayer
avcodec/mlp_parser: check ff_combine_frame() return code
Fixes CID602338
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d15554850799346472683b4a2df05878dcfad48
---
libavcodec/mlp_parser.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index dae19e7..4bb82ee 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -230,6 +230,7 @@ static int mlp_parse(AVCodecParserContext *s,
int sync_present;
uint8_t parity_bits;
int next;
+ int ret;
int i, p = 0;
*poutbuf_size = 0;
@@ -256,7 +257,10 @@ static int mlp_parse(AVCodecParserContext *s,
return buf_size;
}
- ff_combine_frame(&mp->pc, i - 7, &buf, &buf_size);
+ if ((ret = ff_combine_frame(&mp->pc, i - 7, &buf, &buf_size)) < 0) {
+ av_log(avctx, AV_LOG_WARNING, "ff_combine_frame failed\n");
+ return ret;
+ }
return i - 7;
}
More information about the ffmpeg-cvslog
mailing list