Fix regression in previous commit for libavcodec < v55.