Remove forgotten if (p) av_free(p) forms