Fix video_layer.cpp for libavcodec