Skip to content

avcodec: video: fix draining

Zhao Zhili requested to merge quink/vlc:bugfix-avcodec-decoder into master

A codec which doesn't set AV_CODEC_CAP_DELAY but has the capability of multi-threads decoding still needs to be drained by an empty packet. According to the document, it's safe to pass NULL data to libavcodec decode function, libavcodec will not pass it along to the codec unless AV_CODEC_CAP_DELAY is set.

Merge request reports