(avctx->sample_aspect_ratio.num != 1 || avctx->sample_aspect_ratio.num != 1)) { Damn, never noticed that typo. Just fixing the typo should be fine as well, but I like the new logic better so this LGTM and will push soon as well.