]> git.sesse.net Git - ffmpeg/commit
lavc: propagate hwaccel errors
authorwm4 <nfxjfg@googlemail.com>
Wed, 5 Aug 2015 17:54:41 +0000 (19:54 +0200)
committerwm4 <nfxjfg@googlemail.com>
Thu, 6 Aug 2015 09:05:02 +0000 (11:05 +0200)
commit94c0df79c7e8205b9e0ae560bc4ac831c231abb8
tree975bfc9e70b316768b59d4f008de22f16a8b393d
parentace837665362297a761ca92309ece8d7f4fa725a
lavc: propagate hwaccel errors

At least the new videotoolbox decoder does not actually set a frame if
end_frame fails. This causes the API to return success and signals that
a picture was decoded, even though AVFrame->data[0] is NULL.

Fix this by propagating end_frame errors.
libavcodec/h264.c
libavcodec/h264_picture.c
libavcodec/h264_slice.c
libavcodec/hevc.c
libavcodec/mpeg12dec.c