fork from GStreamer libav 1.0