summaryrefslogtreecommitdiffstats
path: root/libavcodec/decode.c
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-10-28 10:27:22 +0800
committerJun Zhao <jun.zhao@intel.com>2018-10-30 13:16:47 +0800
commit903f2beafc7c5379ff65a7ca9b9e7b7ee49c75bf (patch)
tree5ca90cdae89b3e5f2fd341507497d83592ef8bb8 /libavcodec/decode.c
parent1ff4bd59dfcea26b584e8c82a6cd7c3ee87fc8a7 (diff)
downloadffmpeg-streaming-903f2beafc7c5379ff65a7ca9b9e7b7ee49c75bf.zip
ffmpeg-streaming-903f2beafc7c5379ff65a7ca9b9e7b7ee49c75bf.tar.gz
lavc/decode: Fix the error number report if av_image_fill_pointers fail.
-1 will be map to error number "EPERM", and will be map to the error message like "Error while decoding stream #0:0: Operation not permitted", it's a strange error message when debug update_frame_pool fail, now only return the error code from av_image_fill_pointers in case of av_image_fill_pointers failure. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 2e82f6b..c89c77c 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1496,7 +1496,7 @@ static int update_frame_pool(AVCodecContext *avctx, AVFrame *frame)
tmpsize = av_image_fill_pointers(data, avctx->pix_fmt, h,
NULL, linesize);
if (tmpsize < 0)
- return -1;
+ return tmpsize;
for (i = 0; i < 3 && data[i + 1]; i++)
size[i] = data[i + 1] - data[i];
OpenPOWER on IntegriCloud