avcodec: fix broken picture