ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Sun May 31 02:59:06 2015 +0200| [11aa050a2516e85dc2cc0bb27b7a6c3e9ec83dc6] | committer: Michael Niedermayer
avcodec/parser: Print an error in case of reallocation fails in ff_combine_frame() Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=11aa050a2516e85dc2cc0bb27b7a6c3e9ec83dc6 --- libavcodec/parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/parser.c b/libavcodec/parser.c index b06a959..1ef207f 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -255,6 +255,7 @@ int ff_combine_frame(ParseContext *pc, int next, FF_INPUT_BUFFER_PADDING_SIZE); if (!new_buffer) { + av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", *buf_size + pc->index + FF_INPUT_BUFFER_PADDING_SIZE); pc->index = 0; return AVERROR(ENOMEM); } @@ -273,6 +274,7 @@ int ff_combine_frame(ParseContext *pc, int next, next + pc->index + FF_INPUT_BUFFER_PADDING_SIZE); if (!new_buffer) { + av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", next + pc->index + FF_INPUT_BUFFER_PADDING_SIZE); pc->overread_index = pc->index = 0; return AVERROR(ENOMEM); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog