]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/parser.c
avcodec/jpeg2000dec: Fix gain regression with gray16
[ffmpeg] / libavcodec / parser.c
index b06a9595607dd8d0ce481d72998ae3625e124707..1ef207f524ff602b6a162d42ef1fcca4b65e18e9 100644 (file)
@@ -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);