mpegvideo_enc: use the AVFrame API properly.