]> git.sesse.net Git - ffmpeg/commit
lavc/decode: Fix the error number report if av_image_fill_pointers fail.
authorJun Zhao <mypopydev@gmail.com>
Sun, 28 Oct 2018 02:27:22 +0000 (10:27 +0800)
committerJun Zhao <jun.zhao@intel.com>
Tue, 30 Oct 2018 05:16:47 +0000 (13:16 +0800)
commit903f2beafc7c5379ff65a7ca9b9e7b7ee49c75bf
tree5ca90cdae89b3e5f2fd341507497d83592ef8bb8
parent1ff4bd59dfcea26b584e8c82a6cd7c3ee87fc8a7
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>
libavcodec/decode.c