correctly retrieve codecs from recent ffmpeg/libav